private static void StandardView_Closed(object sender, EventArgs e) { PopupItem popupItem = sender as PopupItem; popupItem.Closed -= StandardView_Closed; StandardWindow window = new StandardWindow(); window.Show(); window.Activate(); window.Show(popupItem); }
protected override void OnKeyDown(KeyEventArgs e) { base.OnKeyDown(e); if (e.Key == Key.Escape) { ViewManager.Instance.Close(); e.Handled = true; } if (e.KeyboardDevice.Modifiers == ModifierKeys.Control) { switch (e.Key) { case Key.W: var topitem = ViewManager.Instance.ActiveContainer.TopItem; StandardWindow.ShowStandard(topitem); break; } } }