Hi
I have a tree structure that's mirrored in a viewmodel structure - there's various event handlers in a 'wrapper' collection that monitor the tree structure for items added and removed and creates and removes corresponding viewmodels.
When a viewmodel is added, it appears in the TreeListView as expected.
Is there any way I can expand and select a 'new' item?
I know I can bind selected items and IsExpanded, but from my description you might see that I don't have the viewmodel when the model is changed - this is done automatically. I thought I'd see if anyone had a better idea before I go down that route.
Thanks!
Charles
I have a tree structure that's mirrored in a viewmodel structure - there's various event handlers in a 'wrapper' collection that monitor the tree structure for items added and removed and creates and removes corresponding viewmodels.
When a viewmodel is added, it appears in the TreeListView as expected.
Is there any way I can expand and select a 'new' item?
I know I can bind selected items and IsExpanded, but from my description you might see that I don't have the viewmodel when the model is changed - this is done automatically. I thought I'd see if anyone had a better idea before I go down that route.
Thanks!
Charles