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?
Asked
Active
Viewed 113 times
0
-
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. – jdweng Sep 15 '16 at 12:04
-
can you elaborate a bit or point me toward some literature so i can try that? Thanks – Shahzad Sep 16 '16 at 16:55
-
I haven't seen a solution. It is not hard to create a table of treeview rows to xml elements. – jdweng Sep 16 '16 at 17:06