Triggering Silverlight Prism command with a keyboard shortcut

前端 未结 2 1692
面向向阳花
面向向阳花 2021-01-14 08:57

Does anybody know whether one can trigger prism command with a shortcut? What I mean is I want to be able to define binding of a command to keyboard shortcut in declarative

2条回答
  •  难免孤独
    2021-01-14 09:40

    I've created such gesture trigger. And I'd like to share it with you guys. Basically, it is System.Windows.Interactivity trigger which can parse gestures represented as strings. Usage is as simple as in ClientUI:

    
        
            
            
            
            
            
        
    
    

    The code is on pastie.

提交回复
热议问题