diff --git a/samples/ControlCatalog/MainWindow.xaml b/samples/ControlCatalog/MainWindow.xaml index 157df05030..121878423a 100644 --- a/samples/ControlCatalog/MainWindow.xaml +++ b/samples/ControlCatalog/MainWindow.xaml @@ -84,7 +84,7 @@ - + diff --git a/samples/ControlCatalog/Pages/WindowCustomizationsPage.xaml b/samples/ControlCatalog/Pages/WindowCustomizationsPage.xaml index db2a8a465a..b90f43c3b6 100644 --- a/samples/ControlCatalog/Pages/WindowCustomizationsPage.xaml +++ b/samples/ControlCatalog/Pages/WindowCustomizationsPage.xaml @@ -6,7 +6,7 @@ x:Class="ControlCatalog.Pages.WindowCustomizationsPage"> - + diff --git a/src/Avalonia.Controls/Window.cs b/src/Avalonia.Controls/Window.cs index 3b36cad649..5ef26f1b27 100644 --- a/src/Avalonia.Controls/Window.cs +++ b/src/Avalonia.Controls/Window.cs @@ -104,7 +104,6 @@ namespace Avalonia.Controls public static readonly StyledProperty ExtendClientAreaTitleBarHeightHintProperty = AvaloniaProperty.Register(nameof(ExtendClientAreaTitleBarHeightHint), -1); - /// /// Defines the property. /// @@ -124,7 +123,6 @@ namespace Avalonia.Controls AvaloniaProperty.RegisterDirect(nameof(OffScreenMargin), o => o.OffScreenMargin); - /// /// Defines the property. /// @@ -534,9 +532,7 @@ namespace Avalonia.Controls protected virtual void ExtendClientAreaToDecorationsChanged(bool isExtended) { IsExtendedIntoWindowDecorations = isExtended; - WindowDecorationMargins = PlatformImpl.ExtendedMargins; - OffScreenMargin = PlatformImpl.OffScreenMargin; if (PlatformImpl.NeedsManagedDecorations) diff --git a/src/Avalonia.Native/WindowImpl.cs b/src/Avalonia.Native/WindowImpl.cs index ef2bd32bfc..885591495b 100644 --- a/src/Avalonia.Native/WindowImpl.cs +++ b/src/Avalonia.Native/WindowImpl.cs @@ -138,9 +138,9 @@ namespace Avalonia.Native return false; } - private void InvalidateExtendedMargins () + private void InvalidateExtendedMargins() { - if(WindowState == WindowState.FullScreen) + if (WindowState == WindowState.FullScreen) { ExtendedMargins = new Thickness(); } diff --git a/src/Avalonia.Native/WindowImplBase.cs b/src/Avalonia.Native/WindowImplBase.cs index aac4b1a5dd..f19f9e97aa 100644 --- a/src/Avalonia.Native/WindowImplBase.cs +++ b/src/Avalonia.Native/WindowImplBase.cs @@ -266,7 +266,7 @@ namespace Avalonia.Native return args.Handled; } - protected virtual bool ChromeHitTest (RawPointerEventArgs e) + protected virtual bool ChromeHitTest(RawPointerEventArgs e) { return false; } diff --git a/src/Avalonia.Themes.Default/CaptionButtons.xaml b/src/Avalonia.Themes.Default/CaptionButtons.xaml index 282448bdd5..68249905a1 100644 --- a/src/Avalonia.Themes.Default/CaptionButtons.xaml +++ b/src/Avalonia.Themes.Default/CaptionButtons.xaml @@ -1,7 +1,6 @@