We have implemented our application using MVVM, and for our commands we have used the RelayCommand pattern to implement commands in our ViewModels as specified here: https://gist.github.com/2648922
With ribbon controls, you have the nice feature of hooking up gestures and displaying the shortcut we would like to take advantage of. Since InputGestures is part of RoutedCommand and not part of an interface, there doesn't seem to be a direct way of supporting this in our ICommand implementation. While working on trying to figure this out, perhaps you have some suggestions on getting this working?
I would like to add this to my RelayCommand class or something, so I don't have to add those bindings in XAML. Of course this is probably somewhat "agianst" the MMVM pattern, but I am willing to live with that :)Save Changes
[Modified 6 years ago]