コード例 #1
0
        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);
        }
コード例 #2
0
        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;
                }
            }
        }