How can I handle the Keyboard.KeyDown event without using code-behind? We are trying to use the MVVM pattern and avoid writing an event handler in code-behind file.
How can I handle the Keyboard.KeyDown event without using code-behind? We are trying to
Share
A little late, but here goes.
Microsoft’s WPF Team recently released an early version of their WPF MVVM Toolkit
. In it, you’ll find a class called CommandReference that can handle things like keybindings. Look at their WPF MVVM template to see how it works.