Defining MenuItem Shortcuts

后端 未结 6 626
北恋
北恋 2020-11-27 14:02

I need a simple way to set a shortcut for menu items.

But this don´t work with shortcut, just with click:


    <         


        
6条回答
  •  旧时难觅i
    2020-11-27 15:03

    You can also declare RoutedUICommand in XAML:

    
        
            
                CTRL+SHIFT+B
            
              
    
    

    Do the binding

    
        
    
    

    And in MenuItem

    
    

    Another solution is discussed here.

提交回复
热议问题