跟触发器行为有关,什么是触发器什么是行为,百度其他人写的乱七八糟的,我并不能看懂。在此先强行记忆,后知后觉,再回来理解。

                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="MouseDoubleClick">
                        <i:InvokeCommandAction Command="{Binding DetailCommand}" CommandParameter="{Binding ElementName=userControl_Main}">
                        </i:InvokeCommandAction>
                    </i:EventTrigger>
                </i:Interaction.Triggers>

放到XAML DataGrid中。实现双击弹窗。

 

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
猜你喜欢
  • 2022-01-23
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案