input-gestures

Assign a shortcut key to a command in a ViewModel in WPF

Possible Duplicate: Binding a WPF ShortCut Key to a Command in the ViewModel On a WPF window I have a menu-item that is bound to a command in the ViewModel: <MenuItem Header="_Edit page" Command="{Binding EditCommand}"/> The command is a RelayCommand which forwards the command to a method: EditCommand = new RelayCommand(()...