Firing a Command within EventTrigger of a style?

后端 未结 2 1424
夕颜
夕颜 2021-02-08 08:01

As you know you can\'t bind an Event directly to a command without a behaviour:


    
        

        
2条回答
  •  无人共我
    2021-02-08 08:48

    Thats a version I am using for a Button-command in a similar situation (Button in DataGridRow, Command on DataGrid should be invoked by the Button and I need the DataContext of the row in my command). You would have to use the command of the InvokeCommandAction of the doubleClick-trigger instead, but then it should work as well, I suppose.

    Good luck!

        
                                             
               
    
          
         
    

提交回复
热议问题