I have a form that should capture KeyDown/KeyUp events.
This code fails with NRE, because it looks for KeyDown control on my current view:
this.BindCommand(ViewModel, vm => vm.KeyDown, "KeyDown");
What I've done is created wrapper class that has form as a property, so I can use this overload:
this.BindCommand(ViewModel, vm => vm.KeyDown, v => v.Form, "KeyDown");
While it works, it seems like a hack to me. Is there a proper way to bind to local events?