示例#1
0
        private void HandleFullscreenEvent(object sender, FullscreenModeChangeEventArgs e)
        {
            TabPanel tabHeaders = tabs.FindChild <TabPanel>(null);

            if (e.Fullscreen)
            {
                Visibility               = Visibility.Collapsed;
                defaultTabsStyle         = tabs.ItemContainerStyle;
                defaultWindowStyle       = WindowStyle;
                menu.Visibility          = Visibility.Collapsed;
                controlsPanel.Visibility = Visibility.Collapsed;
                tabHeaders.Visibility    = Visibility.Collapsed;
                WindowStyle              = WindowStyle.None;
                WindowState              = WindowState.Maximized;
                Topmost    = true;
                ResizeMode = ResizeMode.NoResize;
                Visibility = Visibility.Visible;
            }
            else
            {
                tabHeaders.Visibility    = Visibility.Collapsed;
                tabs.ItemContainerStyle  = defaultTabsStyle;
                menu.Visibility          = Visibility.Visible;
                controlsPanel.Visibility = Visibility.Visible;
                tabHeaders.Visibility    = Visibility.Visible;
                WindowStyle = defaultWindowStyle;
                WindowState = WindowState.Normal;
                ResizeMode  = ResizeMode.CanResize;
                Topmost     = false;
            }
        }
示例#2
0
 private void OnFullScreenModeChange(FullscreenModeChangeEventArgs e)
 {
     RaiseEvent(e);
 }