Exemplo n.º 1
0
 private static void OnPaletteKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Tab && !e.Handled)
     {
         ApplicationWindow.HandleTabRequest(e);
     }
 }
Exemplo n.º 2
0
 private static void OnWindowKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Tab && !e.Handled)
     {
         ApplicationWindow.HandleTabRequest(e);
     }
     if (!e.Handled)
     {
         Window window = sender as Window;
         if (window != null)
         {
             Window owningWindow = ApplicationWindow.GetOwningWindow(window);
             if (owningWindow != null)
             {
                 owningWindow.RaiseEvent(e);
             }
         }
     }
 }