Fix #1277.
This commit is contained in:
1 parent
2155d1d5da
commit
6a7aa9c0ff
1 file changed
+6
-2
@@ -61,10 +61,14 @@ namespace HandyControl.Controls
|
|||||||
#else
|
#else
|
||||||
var chrome = new WindowChrome
|
var chrome = new WindowChrome
|
||||||
{
|
{
|
||||||
CornerRadius = new CornerRadius(),
|
|
||||||
GlassFrameThickness = new Thickness(0, 0, 0, 1),
|
|
||||||
UseAeroCaptionButtons = false
|
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
|
#endif
|
||||||
BindingOperations.SetBinding(chrome, WindowChrome.CaptionHeightProperty,
|
BindingOperations.SetBinding(chrome, WindowChrome.CaptionHeightProperty,
|
||||||
new Binding(NonClientAreaHeightProperty.Name) { Source = this });
|
new Binding(NonClientAreaHeightProperty.Name) { Source = this });
|
||||||
|
|||||||
Reference in new issue
Block a user