- Define the command as a static RoutedUICommand and set the keyboard / mouse gestures I wanted on the command's InputGestures collection.
- Use said command in MenuItems, Buttons etc.
- Automatically have keyboard / mouse bindings setup everywhere (including the nice shortcut text on menu items in context menus / menu bar menus)
Showing posts with label mouse. Show all posts
Showing posts with label mouse. Show all posts
Wednesday, February 06, 2013
Using key gestures with parameterized Commands in WPF is "broken"
Ok, it's not actually broken, it just doesn't work the way I wanted (or expected). Apparently, there's a very good article on why they don't work the way I expected. To be clear, the way I expected them to work was:
Subscribe to:
Posts (Atom)