From ec4908f6d1b5bb1f4977b7564d9f5a0c31b64293 Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Fri, 22 May 2020 17:35:52 -0300 Subject: [PATCH] working margins --- samples/ControlCatalog/MainWindow.xaml | 24 +++++++++---------- .../ViewModels/MainWindowViewModel.cs | 5 ---- src/Avalonia.Themes.Default/Window.xaml | 4 +++- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/samples/ControlCatalog/MainWindow.xaml b/samples/ControlCatalog/MainWindow.xaml index b110451421..157df05030 100644 --- a/samples/ControlCatalog/MainWindow.xaml +++ b/samples/ControlCatalog/MainWindow.xaml @@ -66,20 +66,20 @@ - + - - - - - - - - - - - + + + + + + + + + + + diff --git a/samples/ControlCatalog/ViewModels/MainWindowViewModel.cs b/samples/ControlCatalog/ViewModels/MainWindowViewModel.cs index b3ea25e470..5e9b02db06 100644 --- a/samples/ControlCatalog/ViewModels/MainWindowViewModel.cs +++ b/samples/ControlCatalog/ViewModels/MainWindowViewModel.cs @@ -70,11 +70,6 @@ namespace ControlCatalog.ViewModels { ChromeHints = ExtendClientAreaChromeHints.NoChrome; - if(x.Item1) - { - ChromeHints |= ExtendClientAreaChromeHints.SystemChromeButtons; - } - if(x.Item2) { ChromeHints |= ExtendClientAreaChromeHints.ManagedChromeButtons; diff --git a/src/Avalonia.Themes.Default/Window.xaml b/src/Avalonia.Themes.Default/Window.xaml index 09fec62d02..fa82b760ba 100644 --- a/src/Avalonia.Themes.Default/Window.xaml +++ b/src/Avalonia.Themes.Default/Window.xaml @@ -5,7 +5,9 @@ - + + +