-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Window close button does not fill with main window #9934
Comments
It's because of this |
I can confirm this fixes the offset by 1 error with the caption buttons on Windows 10. I don't have Windows 11 so I was not able to test the (original) behavior on that OS version. In combination with DWM extending the top border of the main/parent window by 2 you will get rid of most, if not all, graphical issues with the caption buttons (besides the wrong colors, but we have an API to fix this). The only issue that I'm aware of is the missing OS provided tooltips for the minimize and maximize/restore caption buttons (the close tooltip does show). I noticed something interesting while subclassing the ReunionWindowingCaptionControls class child window: |
And I did not test 1.6 experimental but they say there is a new control https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/experimental-channel#new-titlebar-control The new TitleBar control we released in 1.6-experimental1 is not yet available in non-experimental builds of 1.6 to allow more time to evaluate and respond to community feedback. We received a lot of great input here and want to make sure we take the time needed to address it. |
Describe the bug
Window close button have padding right in main window
Steps to reproduce the bug
Expected behavior
Remove right padding for Window Close button
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.5.6: 1.5.240802000
Windows version
Windows 10 (21H1): Build 19043
Additional context
No response
The text was updated successfully, but these errors were encountered: