Skip to content

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

@Flo0806

Description

@Flo0806

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-TitleBarIssues related to custom window title bars.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions