WPF_DataGrid绑定行双击行命令
2025年1月5日小于 1 分钟
绑定行双击行命令
<DataGrid ...>
<DataGrid.InputBindings>
<MouseBinding MouseAction="LeftDoubleClick" Command="{Binding DoubleClickCommand}"/>
</DataGrid.InputBindings>
</DataGrid>
绑定行双击行命令
<DataGrid ...>
<DataGrid.InputBindings>
<MouseBinding MouseAction="LeftDoubleClick" Command="{Binding DoubleClickCommand}"/>
</DataGrid.InputBindings>
</DataGrid>