void OnKeyUp(object sender, KeyEventArgs e) { switch (e.Key) { case Key.L: { if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Alt)) == (ModifierKeys.Control | ModifierKeys.Alt)) { _logPanel.Visibility = _logPanel.Visibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible; _logPanel.UpdateLayout(); } break; } } }