Пример #1
0
        private void ExecuteFullScreenCommand(object sender, RoutedEventArgs e)
        {
            var currentControl = TabContent.SelectedContent as Control;

            if (currentControl == null)
            {
                return;
            }
            var item = TabContent.SelectedValue as ExtTabItem;

            RemoveParent(currentControl);
            var fullScreen = new FullScreenWindow(currentControl, item)
            {
                Owner = this
            };

            fullScreen.ShowDialog();
        }
Пример #2
0
        void MainWindow_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.Key)
            {
            case Key.F11:
                var currentControl = TabContent.SelectedContent as Control;
                if (currentControl == null)
                {
                    return;
                }
                var item = TabContent.SelectedValue as ExtTabItem;
                RemoveParent(currentControl);
                var fullScreen = new FullScreenWindow(currentControl, item)
                {
                    Owner = this
                };
                fullScreen.ShowDialog();
                break;

            case Key.F9:
                this.BtnLeft_OnClick(this, null);
                break;
            }
        }