动态WPF应用 [英] Dynamic WPF App

查看:52
本文介绍了动态WPF应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

具有一些.xml文件.具有相同的结构:

Have some .xml files. With identical structure:

<window>
  <metods>
    <metod name="New" />
    <metod name="Delete" />
  </metods>
  <consumers>
    <consumer name="Alex" surname="Smith" />
    <consumer name="Matthew" surname="MacDonald" />
  </consumers>
</window>




属性值的区别
WPF应用程序加载.xml并应如下所示:
JPG




Distinctions in values of attributes
WPF Application load .xml and should look so:
JPG

推荐答案

什么?

我们希望以什么方式为您提供帮助?


显然,您可以访问MVVM示例,因此您就拥有了应用程序的开始.
下一步应该是在Internet上搜索WPF中与xml数据的数据绑定.当您发现可以理解的内容时,请尝试实施它,然后在此处再次遇到遇到的任何特定问题.请记住要包含问题代码的所有错误消息和摘要.

诸如 wpf mvvm数据绑定xml 之类的搜索短语应该会为您提供许多有用的信息.请记住阅读那些人们遇到问题的文章,这些文章通常与教程"类文章一样具有启发性.

在Code Project上,也有一些关于此主题的好文章(使用页面顶部的Articles | Search菜单).
[/Edit]
And your question is what?

In what way are we expected to assist you?


You obviously have access to the MVVM samples, so you have the beginnings of your application.
The next step should be to search on the internet for DataBinding to xml data in WPF. When you find something that you can understand try to implement it and then ask again here with any specific problems that you encounter. Remember to include any error messages and snippets of the problem code.

A search phrase such as wpf mvvm databinding xml should get you lots of useful information. Remember to read the ones where people have encountered problems as well as these are often as instructive as the ''tutorial'' type articles.

There are also several good articles on this subject here on The Code Project (use the Articles|Search menu at the top of the page).
[/Edit]


是的,正如Henry所说的那样.我想您错过了能帮我一下吗"的口号.

创建您的屏幕,并使其在XAML中看起来正确,然后将其绑定到您拥有的XML或代表该屏幕的对象图.
Yes, as Henry noted there''s no question in there. I presume you missed the ''can you help me please'' bit out.

Create your screen and get it looking right in XAML and then bind either to the XML you''ve got, or an object graph representing it.


我们不会做您的为您工作.如果您对实际尝试做的事情有疑问,我们也许可以提供帮助,但是从头开始编写代码?为你?免费?不会的,Sparky.
We''re not going to do your work for you. If you have a question about something you''ve actually tried to do, we might be able to help, but coding from scratch? For You? For Free? Not gonna happen, Sparky.


这篇关于动态WPF应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆