3

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

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.