What is the easiest way to bind a TreeView to a Property in the ViewModel? I first tried to implement the exmaple in the help docs by Binding to Object and using a hierarchical data template to display in the TreeView, but it's not working and I don't know enough about binding, resources and templates to know why.
I would like to bind my TreeView to an object and have the treeview reflect the changes as they are made in code. Is this possible, and if so, can you point me in the right direction?
Thanks,
-Scott
EDIT: I wanted to add that within my ViewModel, I am creating and maintaining an object based on a Ria Services EF call. I have an object with the full hierarchy I need. I just need to find a way to bind it to the TreeView.
I would like to bind my TreeView to an object and have the treeview reflect the changes as they are made in code. Is this possible, and if so, can you point me in the right direction?
Thanks,
-Scott
EDIT: I wanted to add that within my ViewModel, I am creating and maintaining an object based on a Ria Services EF call. I have an object with the full hierarchy I need. I just need to find a way to bind it to the TreeView.