Could someone confirm that I'm going about this the right way, please.
I have a Shell with several regions including a MainRegion. One View that is added to the MainRegion has a a ViewModel as its DataContext and hosts five more regions. Three of these regions are used for TreeViewViews, ListViewViews and DetailsViews.
Each of these has its own ViewModel as its DataContext. All of the Views come from the same Module.
I'd like classic behaviour: I select a folder in the TreeViewView and get its contents in the ListViewView. I select an item in the ListViewView and get its properties in the DetailsView.
I've created an attached behaviour (using
Damian Schenkelman’s Snippet) for the TreeViewItems so that I can run a DelegateCommand when the TVI is selected. The plan is to use this to send an event via the EventAggregator and allow the ListViewViewModel to pick it up. (And then
do the same again to link ListViewItems to the DetailsView. Is this the right way to do things?