Reputation: 1170
I have a xml file which I want to edit using automatic data binding in my wpf application. Can anyone lead me into this please? For example, can I add all the xml contents into a treeview? More...if I modify the xml by hand, will the treeview auto-refresh with the new values?
Thanks
Upvotes: 3
Views: 142
Reputation: 233125
For a really good introduction to a very maintainable way to do databinding in WPF, see Josh Smith's article on MVVM.
It doesn't explicitly discuss binding to XML, but it should give you a really good idea of the power of WPF databinding.
Upvotes: 1
Reputation: 50273
I think you are looking for the XmlDataProvider. Here is an article about how to use it: http://www.codeproject.com/KB/WPF/WpfXml2WayDataBinding.aspx
Upvotes: 2