I usually use AttachedCommandBehavior . These are 3 cool files that can be added to your project, and allows you to attach teams to almost any event.
Here is an example of how to use it:
<Style TargetType="{x:Type DataGridRow}"> <Setter Property="local:CommandBehavior.Event" Value="MouseDoubleClick" /> <Setter Property="local:CommandBehavior.Action" Value="{Binding MyDoubleClickCommand}" /> <Setter Property="local:CommandBehavior.CommandParameter" Value="{Binding }" /> </Style>
source share