I\'m using the RelayCommand in my app. It\'s great for putting the code in the viewmodel, but how do I bind keystrokes to my command?
RoutedUICommand has its InputGe
Assuming your RoutedCommands are defined statically:
#region DeleteSelection
///
/// The DeleteSelection command ....
///
public static RoutedUICommand DeleteSelection
= new RoutedUICommand("Delete selection", "DeleteSelection", typeof(ChemCommands));
#endregion
Bind in XAML thus:
Regards,
Tim Haughton