What's the preferred method of updating other controls when a TreeViewItem has been selected?
Currently I have the following structure in my TreeView
DataStoreType - (DataStoreTypeViewModel)
DataStoreEntry - (DataStoreEntryViewModel)
DataStoreEntry - (DataStoreEntryViewModel)
DataStoreEntry - (DataStoreEntryViewModel)
DataStoreType - (DataStoreTypeViewModel)
DataStoreEntry - (DataStoreEntryViewModel)
DataStoreEntry - (DataStoreEntryViewModel)
DataStoreEntry - (DataStoreEntryViewModel)
It's using the MVVM pattern, with each of the two treeview item types populated by a specific View-Model (the DataStoreTypeViewModel
and DataStoreEntryViewModel
).
When the user selects one of the nodes (either a DataStoreType
or a DataStoreEntry
) I need to be able to populate a list control with information based on the selection. So the list
control needs to be able to display two different sets of data.
I've read a little about RoutedEvents
, but not sure if that's the way to go...
Thanks
Kieron