1 <i:Interaction.Triggers> 2 <i:EventTrigger EventName="MouseDown"> 3 <i:InvokeCommandAction Command="{Binding LocatedCommand}" /> 4 </i:EventTrigger> 5 <i:EventTrigger EventName="MouseDoubleClick"> 6 <i:InvokeCommandAction Command="{Binding PersonnelDetailShowCommand}" /> 7 </i:EventTrigger> 8 </i:Interaction.Triggers> 9 <!--下面这个写法会阻止消息的传递,引发界面上潜在的问题--> 10 <!--<Grid.InputBindings> 11 <MouseBinding Command="{Binding PersonnelDetailShowCommand}" MouseAction="LeftDoubleClick" /> 12 <MouseBinding Command="{Binding LocatedCommand}" MouseAction="LeftClick" /> 13 </Grid.InputBindings>-->
尽量使用第一种写法