Proper way to do MouseDoubleClick in MVVM
-
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?
-
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?
I hope you get a response for this as I'm a polluter, I use code behind and pass the info to the datacontext :-O
Never underestimate the power of human stupidity RAH
-
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?
The generally accepted solution is to use something like EventToCommand.
-
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?