WPF DataGrid: CommandBinding to a double click instead of using Events

前端 未结 4 1245
轮回少年
轮回少年 2021-02-01 02:37

I know how to use the MouseDoubleClick event with my DataGrid to grab the selectedvalue, but how would one go about using command bindings instead? That way my ViewModel can han

4条回答
  •  梦如初夏
    2021-02-01 03:16

    Another solution is to add input bindings, and to bind the selectedItem to a property so you'll know which one was selected:

    
          
              
         
    
    

提交回复
热议问题