This is a migrated thread and some comments may be shown as answers.

Select item programmatically and expand all parents in resourcedictionary

0 Answers 115 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Dmytro
Top achievements
Rank 1
Dmytro asked on 22 Aug 2013, 03:32 PM
Hello, i'll wrote my app with mvvm pattern and have a problem with selecting item programmatically in resourcedictionary.
I have TreeListView on the one resourcedictionary and GridView in another. Also I have two ObservableCollection 1 and 2 wich i bind.
When user select item in the TreeListView and this item has a reference to another items at this (1) then i add referenced items to anothe ObservableCollection (2). GridView bind to the ObservableCollection (2) and when the user select item from GridView 
at the ObservableCollection (2) I find the same item in ObservableCollection (1) and set the "SelectedItem" to it and the problem is that the  TreeListView didn't Expand parents to the SelectedItem. Help me pleas! Attached example below.
Best Regards,
Dmytro.









No answers yet. Maybe you can help?

Tags
TreeListView
Asked by
Dmytro
Top achievements
Rank 1
Share this question
or