How to pass EventArgument information from view to view model in WPF?
Posted
by Ashish Ashu
on Stack Overflow
See other posts from Stack Overflow
or by Ashish Ashu
Published on 2010-03-21T05:11:20Z
Indexed on
2010/03/21
5:21 UTC
Read the original article
Hit count: 556
I have ListView control in my application which is binded to the collection of CustomObject List<CustomObject>. The CustomObject has seperate view. This ListView has seperate view model.
The collection List _customobject is containted in the ListView ViewModel class.
My Query:
I want to invoke a view that show properties of custom object, when user double click on any row of ListView. The ListView double click command is binded to the ListViewDoublClick Command in the view model. The CustomObject is in the event argument of listview double click command. To acheive this I have to pass the custom object ( or an unique id property of custom object through which I can retrieve the custom object from the collection) as command parameter.
Please suggest me the solution!!
© Stack Overflow or respective owner