Trying to figure out how to use EventToCommand to set a datagrid double click handler for rows. The command lives in the viewmodel for each row. Just that much out of my experience, since I haven’t used interactions yet.
Thanks.
I would have used mvvmlight tag, but I don’t have high enough rep yet to make new tags.
This would be the solution if the Command lives on the “GridVieModel” and not on the “RowViewModel”.
You could create a rowview since the row also has its own viewmodel and use the mousedoubleclick event of a child element of the row (container) in the rowview.
Or you create a converter for your command binding:
The converter then would check if the selectedItem is of the required type to return the command (Something like ISelectCommandable with a RelayCommand Property)