Sunday, 22 November 2009

Keybinding and MVVM

I had an issue where I was trying to bind key inputs and commands in my XAML.  The exception that I got was this here, "A 'Binding' cannot be set on the 'Command' property of type 'KeyBinding'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject"

The solution can be found here
http://joyfulwpf.blogspot.com/2009/05/mvvm-commandreference-and-keybinding.html

No comments: