Пример #1
0
        public void SetSystemDecorations(SystemDecorations value)
        {
            if (value == _decorated)
            {
                return;
            }

            UpdateWMStyles(() => _decorated = value);
        }
Пример #2
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;
            }
        }
Пример #3
0
 public void SetSystemDecorations(SystemDecorations enabled)
 {
 }
Пример #4
0
 public AvaloniaWindowBuilder Decorations(SystemDecorations decorations)
 {
     this.decorations = decorations; return(this);
 }