2

is there anyway for DelegateCommand's to support gestures when building a composite WPF app? I'm trying to create a command used by a MenuItem and also a Button, which can be accessed through a keyboard shortcut, but which sits inside a class in a separate assembly.

I can use a RoutedCommand, but I want to minimise any code-behind.

devdigital
  • 34,151
  • 9
  • 98
  • 120

1 Answers1

3

Use InputBindingCollection to map gestures with ICommand.

Anvaka
  • 15,658
  • 2
  • 47
  • 56