OnMouseDoubleClick from a selectedItem in a listview, I want to retrieve the parent of that selectedItem, and from that, populate several related listviews with the related records. What is the best way to do this using the MVVM pattern without polluting the view with too much code-behind?
D
David Ceder
@David Ceder
Posts
-
Proper way to do MouseDoubleClick in MVVM -
MVVM Best PractiseI have code in my view that reacts to a double-click on a listview so that the next successive parent of the SelectedItem being double-clicked is displayed. At the same time, other listviews which are synchronized to the SelectedItem(a ViewModel) of the listview being clicked shows the related ViewModel records. How can I best separate this out in MVVM so there is no code in my view?