private void BaseWindow_KeyDown(object sender, KeyEventArgs e) { if (KeyDownCommand != null) { KeyDownCommand.Execute(e); } }
private void AssociatedUIElementKeyDown(object sender, KeyEventArgs e) { if (KeyDownCommand != null) { ObjectAndArgs oa = new ObjectAndArgs { Args = e, Object = AssociatedObject }; KeyDownCommand.Execute(oa); } }