Skip to content
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

Issue with ExtendsContentIntoTitleBar on Multi-Screen Setup with Different Scaling (Maximized State) #10371

Open
Flo0806 opened this issue Feb 19, 2025 · 0 comments
Labels
area-TitleBar Issues related to custom window title bars. bug Something isn't working

Comments

@Flo0806
Copy link

Flo0806 commented Feb 19, 2025

Describe the bug

Image

I'm trying to create a custom window following Microsoft's example here. Everything works fine when using a single screen or multiple screens with the same scaling.

However, when I have one screen set to 250% scaling (4K) and another at 100% scaling, a large white border appears at the top of the window when maximized on the screen with the lower scaling.

I noticed the same issue in the WinUI Gallery App, which behaves similarly on my second screen, just like my own implementation. This suggests that it's not an issue with my code but rather a general problem.

Has anyone encountered this before? Is there a known workaround or fix for this behavior?

Thanks in advance! 😊

Steps to reproduce the bug

Open WinUI Gallery on different screens with different scaling.

or

Follow the simple example from Microsoft here

Expected behavior

Full screen without any white border on all screens

Screenshots

Image

NuGet package version

WinUI 3 - Windows App SDK 1.6.5: 1.6.250205002

Windows version

Windows 11 (24H2): Build 26100

Additional context

No response

@Flo0806 Flo0806 added the bug Something isn't working label Feb 19, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Feb 19, 2025
@snigdha011997 snigdha011997 added area-TitleBar Issues related to custom window title bars. and removed needs-triage Issue needs to be triaged by the area owners labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-TitleBar Issues related to custom window title bars. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants