I have a Datagrid and don\'t like my workaround to fire a double click command on my viewmodel for the clicked (aka selected) row.
View:
Why don't you simply use the CommandParameter
?
...
Your command is something like this:
public ICommand MouseDoubleClickCommand
{
get
{
if (mouseDoubleClickCommand == null)
{
mouseDoubleClickCommand = new RelayCommand(
item =>
{
var selectedItem = item;
});
}
return mouseDoubleClickCommand;
}
}
EDIT: I now use this instead of Interaction.Triggers
: