Ejemplo n.º 1
0
        private void HandleFullscreenEvent(object sender, RoutedEventArgs e)
        {
            WrapPanel tabHeaders = tabs.FindChild <WrapPanel>(null);

            if (((FullscreenModeChangeEventArgs)e).Fullscreen)
            {
                menu.IsVisible          = false;
                controlsPanel.IsVisible = false;
                tabHeaders.IsVisible    = false;
                _systemDecorations      = this.SystemDecorations;
                WindowState             = WindowState.Maximized;
                Topmost = true;
            }
            else
            {
                menu.IsVisible          = true;
                controlsPanel.IsVisible = true;
                tabHeaders.IsVisible    = true;
                this.SystemDecorations  = _systemDecorations;
                WindowState             = WindowState.Normal;
                Topmost = false;
            }
        }