views:

32

answers:

1

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(() => editPage());

I want to assign a shortcut key Ctrl+E to the command.

How should I do this?