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

前端 未结 4 1243
轮回少年
轮回少年 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:02

    Use this library

    Sample binding to datagrid event:

    
    

    But this code is better, because raises on row clicks only:

    
        
            
        
    
    

提交回复
热议问题