Select item programmatically and expand all parents in resourcedictionary

1 posts, 0 answers
  1. Dmytro
    Dmytro avatar
    1 posts
    Member since:
    Jul 2013

    Posted 22 Aug 2013 Link to this post

    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,

Back to Top