mirror of
https://gitee.com/handyorg/HandyControl.git
synced 2024-11-29 18:38:30 +08:00
Fix #1277.
This commit is contained in:
parent
2155d1d5da
commit
6a7aa9c0ff
@ -61,10 +61,14 @@ namespace HandyControl.Controls
|
||||
#else
|
||||
var chrome = new WindowChrome
|
||||
{
|
||||
CornerRadius = new CornerRadius(),
|
||||
GlassFrameThickness = new Thickness(0, 0, 0, 1),
|
||||
UseAeroCaptionButtons = false
|
||||
};
|
||||
// if below Win11 22H2
|
||||
if (Environment.OSVersion.Version < new Version(10, 0, 22621, 0))
|
||||
{
|
||||
chrome.GlassFrameThickness = new Thickness(0, 0, 0, 1);
|
||||
chrome.CornerRadius = new CornerRadius();
|
||||
}
|
||||
#endif
|
||||
BindingOperations.SetBinding(chrome, WindowChrome.CaptionHeightProperty,
|
||||
new Binding(NonClientAreaHeightProperty.Name) { Source = this });
|
||||
|
Loading…
Reference in New Issue
Block a user