I want to implement Keyboard shortcuts for a MenuItem
. I have used the code below:
It is quite explicit in the documentation for the property:
This property does not associate the input gesture with the menu item; it simply adds text to the menu item. The application must handle the user's input to carry out the action. For information on how to associate a command with a menu item, see Command.