DelegateCommand vs RoutedCommand and gestures - WPF

Anyway, so that DelegateCommand supports gestures when creating a composite WPF application? I am trying to create a command used by MenuItem, as well as a button that can be accessed using a keyboard shortcut, but which is inside the class in a separate assembly.

I can use RoutedCommand, but I want to minimize any code.

+2
source share
1 answer

Use InputBindingCollection to map gestures using ICommand.

+3
source

Source: https://habr.com/ru/post/1394655/


All Articles