0

I asked this question and successfully loaded a xml file to tree view. but is it possible to add a (+)/(-) button after each nodes, so we can add more child under nodes at run time? is it possible to do it while xml file is directly binded as data template or do i have to change my approach to something code based like MVVM?

3
  • I keep on seeing similar issues with linking a treeview to an xml document. There is no built in method that keeps track of the treeview rows with the elements and attributes in the xml document. You have to create a dictionary (or similar list) to keep track between the two objects (treeview and xml). Once you link the treeview to the xml document then you can can easily add items to the treeview and also add to the xml document. Commented Sep 15, 2016 at 12:04
  • can you elaborate a bit or point me toward some literature so i can try that? Thanks Commented Sep 16, 2016 at 16:55
  • I haven't seen a solution. It is not hard to create a table of treeview rows to xml elements. Commented Sep 16, 2016 at 17:06

0

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.