I have an ObservableCollection<> with some parent-child items. How to bind this in BreadCrumb control using MVVM ? I tried to some extent. But it results in showing the "First child of the selected item in treeview". Please help me by providing a small example using MVVM pattern.
I saw your "MyComputer" example. There you are using BreadCrumb and treeview in the same page. And you are having same itemsource for both controls. And so you put, Breadcrumb.SelectedItem=treeview.SelectedItem.
But in my condition, I am using it as separate usercontrols and implemented in a separate page.
Note :
-------
For the first time, I am having only the parent items with me. While selecting any item in treeview, I will get its children.
Please help me in this regard.
I saw your "MyComputer" example. There you are using BreadCrumb and treeview in the same page. And you are having same itemsource for both controls. And so you put, Breadcrumb.SelectedItem=treeview.SelectedItem.
But in my condition, I am using it as separate usercontrols and implemented in a separate page.
Note :
-------
For the first time, I am having only the parent items with me. While selecting any item in treeview, I will get its children.
Please help me in this regard.