diff --git a/src/Shared/HandyControl_Shared/Controls/Window/Window.cs b/src/Shared/HandyControl_Shared/Controls/Window/Window.cs index 736cf629e..7de0ebbe2 100644 --- a/src/Shared/HandyControl_Shared/Controls/Window/Window.cs +++ b/src/Shared/HandyControl_Shared/Controls/Window/Window.cs @@ -8,6 +8,8 @@ using HandyControl.Tools; using HandyControl.Tools.Extension; using HandyControl.Tools.Interop; +using HandyControl.Tools.Helper; + #if NET40 using Microsoft.Windows.Shell; #else @@ -61,10 +63,14 @@ public Window() #else var chrome = new WindowChrome { - CornerRadius = new CornerRadius(), - GlassFrameThickness = new Thickness(0, 0, 0, 1), UseAeroCaptionButtons = false }; + + if (SystemHelper.GetSystemVersionInfo() < SystemVersionInfo.Windows11_22H2) + { + chrome.GlassFrameThickness = new Thickness(0, 0, 0, 1); + chrome.CornerRadius = new CornerRadius(); + } #endif BindingOperations.SetBinding(chrome, WindowChrome.CaptionHeightProperty, new Binding(NonClientAreaHeightProperty.Name) { Source = this }); diff --git a/src/Shared/HandyControl_Shared/Data/Info/SystemVersionInfo.cs b/src/Shared/HandyControl_Shared/Data/Info/SystemVersionInfo.cs index b6c4e1659..f1de0b787 100644 --- a/src/Shared/HandyControl_Shared/Data/Info/SystemVersionInfo.cs +++ b/src/Shared/HandyControl_Shared/Data/Info/SystemVersionInfo.cs @@ -8,10 +8,9 @@ namespace HandyControl.Data; public readonly struct SystemVersionInfo { public static SystemVersionInfo Windows10 => new(10, 0, 10240); - public static SystemVersionInfo Windows10_1809 => new(10, 0, 17763); - public static SystemVersionInfo Windows10_1903 => new(10, 0, 18362); + public static SystemVersionInfo Windows11_22H2 => new(10, 0, 22621); public SystemVersionInfo(int major, int minor, int build) {