private void KeyboardAccelerator_Escape_Invoked(Windows.UI.Xaml.Input.KeyboardAccelerator sender, Windows.UI.Xaml.Input.KeyboardAcceleratorInvokedEventArgs args)
 {
     _prevKey = ' ';
     ClearMenuAction();
     if (_eventAction.TryGetValue(EventId.Cancel, out Action cancel))
     {
         cancel?.Invoke();
     }
 }
 private void KeyboardAccelerator_Paste_Invoked(Windows.UI.Xaml.Input.KeyboardAccelerator sender, Windows.UI.Xaml.Input.KeyboardAcceleratorInvokedEventArgs args)
 {
 }
 private void KeyboardAccelerator_Enter_Invoked(Windows.UI.Xaml.Input.KeyboardAccelerator sender, Windows.UI.Xaml.Input.KeyboardAcceleratorInvokedEventArgs args)
 {
     TryEXecuteMenuAction();
 }
 private void KeyboardAccelerator_Right_Invoked(Windows.UI.Xaml.Input.KeyboardAccelerator sender, Windows.UI.Xaml.Input.KeyboardAcceleratorInvokedEventArgs args)
 {
     _arrowDelta = (1, 0);
     if (_eventAction.TryGetValue(EventId.Arrow, out Action arrow))
     {
         arrow?.Invoke();
     }
 }
 private void KeyboardAccelerator_H_Invoked(Windows.UI.Xaml.Input.KeyboardAccelerator sender, Windows.UI.Xaml.Input.KeyboardAcceleratorInvokedEventArgs args)
 {
     if (_prevKey == 'A')
     {
         SetMenuAction(AlignButton, AlignHorzItem, AlignHorz);
     }
     else if (_prevKey == 'F')
     {
         SetMenuAction(FlipButton, FlipHorzItem, FlipHorz);
     }
     _prevKey = 'H';
 }
 private void KeyboardAccelerator_L_Invoked(Windows.UI.Xaml.Input.KeyboardAccelerator sender, Windows.UI.Xaml.Input.KeyboardAcceleratorInvokedEventArgs args)
 {
     if (_prevKey == 'R')
     {
         SetMenuAction(RotateButton, RotateLeft90Item, RotateLeft90);
     }
     _prevKey = 'L';
 }
 private void KeyboardAccelerator_F_Invoked(Windows.UI.Xaml.Input.KeyboardAccelerator sender, Windows.UI.Xaml.Input.KeyboardAcceleratorInvokedEventArgs args)
 {
     _prevKey = 'F';
 }