Treeview Expansion in MVVM
-
I have tried the application that is listed Silverlight Auto Complete Treeview[^] It seems to be a good solutions accessing the View Model in a MVVM application using the treeview. The core of this article is based on Bea Stollnitz's solution to treeview expansion in Silverlight. However, it does not like to get binded using DataContext and ItemsSource in XAML. Does anybody has come up with a solution?
-
I have tried the application that is listed Silverlight Auto Complete Treeview[^] It seems to be a good solutions accessing the View Model in a MVVM application using the treeview. The core of this article is based on Bea Stollnitz's solution to treeview expansion in Silverlight. However, it does not like to get binded using DataContext and ItemsSource in XAML. Does anybody has come up with a solution?
Hello, Are you setting Model to the datacontext of MainPage? If yes, you will need to load the xml file from the constructor of that Model class and will add to add one more property in Model class.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders
-
Hello, Are you setting Model to the datacontext of MainPage? If yes, you will need to load the xml file from the constructor of that Model class and will add to add one more property in Model class.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders