TreeView的数据绑定 [英] DataBinding of TreeView

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

问题描述

嗨...

如何将xml文件中的数据绑定到树形视图中??

How can I databind from my xml file to my treeview???

我不喜欢填充树状视图的方式,因为在创建xml文件然后将其加载到树状视图时,UI并不适合我.

I didn't like my way of populating a tree view, coz of it doesn't go with my UI when I was creating an xml file then load it to the treeview...

所以我认为数据绑定将解决此类问题...

So I think databinding would resolve this kind of problem...

有人...请帮助我...

Somebody... help me please...

推荐答案

你好

      当我在您的位置时,我开始使用xml绑定的第一个示例 XmlDataProvider (单击指向veiw定义的链接和示例xaml代码的链接)类.伟大的MSDN有很多有关WPF中xml数据绑定的示例.我认为您应该多做一些研究以找出方法.

        When I was in your place, I started my first sample of xml binding with the XmlDataProvider (click the link to veiw definition and sample xaml code) class. The great MSDN has lots of samples about xml data binding in WPF. I think you should do a little more research to find out the way.

问候"


这篇关于TreeView的数据绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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