WinUI3 - Strange top line when maximized window

LeonardodaCunhaMeloSantos-3381 0 Reputation points
2023-12-18T17:37:19.0133333+00:00

Hello!

When we set ExtendsContentIntoTitleBar to true in the application on Dark Mode, we have strange top line when we click to maximize window. This behavior occurs when the screen/monitor have Resolution 100%, 125% etc. I opened a issue in Microsoft's GitHub but we don't have solution yet.

Platform: WinUI 3 - Windows App SDK 1.4.3: 1.4.231115000

GitHub issue: https://github.com/microsoft/microsoft-ui-xaml/issues/9176

Steps to reproduce the bug

  1. Open the application and keep window normal size (non-maximized)
  2. Change resolution from 125% to 100% in Windows Settings
  3. Back to application and maximize the window.
  4. Result: Strange top line appears.

Is there some solution or workaround to solve this case?

TitleBar_WithTopLineWhenMaximized

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
748 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,156 questions
{count} votes