OK, here's a sample project. Someone please answer:
If you right click inside the Save button and click Save on the context menu it works. How to get the shortcut (Ctrl+S) to do the same????????????????????????
Hello,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Thank you for your post. I have been looking into it and the sample project you have provided and I modified it, so now it works as you want. Basically I create an instance of your CommandRefference class and bound its Command Property to the save command because the KeyBinding’s Command Property isn’t a Dependency Property and cannot be bound. Also here you can read more about MVVM Commands:
http://joyfulwpf.blogspot.com/2009/05/mvvm-commandreference-and-keybinding.html
Please let me know if this helps you or you need further clarification s on this matter.
Looking forward for your reply.