HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

hc:Window Win11 22H2 black border at top

Open GF-Huang opened this issue 3 years ago • 4 comments
trafficstars

Describe the bug

hc:Window

image

Window has no this issue

image

Steps to reproduce the bug

Just change Window class to hc:Window of default WPF project template.

Expected behavior

No black border at top.

Screenshots

No response

NuGet package version

HandyControl 3.3.0

IDE

Visual Studio 2022

Framework type

.Net 5.0

Windows version

Windows 11 22H2 (22621.67)

Additional context

No response

GF-Huang avatar Oct 18 '22 17:10 GF-Huang

@NaBian I found that it is caused by:

https://github.com/HandyOrg/HandyControl/blob/465433560f0fe96bf2bc71e93f60b923d21c7bc6/src/Shared/HandyControl_Shared/Controls/Window/Window.cs#L65

It has different appearance on ~Win10~ Win11 21H2 and Win11 22H2.

GF-Huang avatar Oct 22 '22 15:10 GF-Huang

Dear sir, how do you implement the radius corner of the window?

wangyexiang avatar Dec 04 '22 10:12 wangyexiang

Dear sir, how do you implement the radius corner of the window?

It's Windows 11 built-in effect.

GF-Huang avatar Dec 04 '22 10:12 GF-Huang

@NaBian Does this issue hard to fix? Or can not be reproduced? Please let me know. I wonder if I'm the only one having this issue.

GF-Huang avatar Jan 27 '23 02:01 GF-Huang