====listbox===
<DataTemplate>
<Border Width="350"
Height="230"
Margin="2"
Background="{DynamicResource Common.UC.Background.Dark}">
<Border.InputBindings>//绑定事件
<MouseBinding Command="{Binding DetailShowCommand}" MouseAction="LeftDoubleClick" />
</Border.InputBindings>
===datagrid====
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseDoubleClick">
<i:InvokeCommandAction Command="{Binding DoubleClickCommand}" CommandParameter="{Binding ElementName=dgvDeploys, Path=SelectedItem}" />
</i:EventTrigger>
</i:Interaction.Triggers>