Skip to content

Setting the TitleBar Control Icon Breaks Window Resizing Behavior #10427

Open
@Zakariathr22

Description

@Zakariathr22

Describe the bug

When maximizing the window and then dragging it from the TitleBar control, the following issues occur:

  • The CenterContent of the TitleBar overlaps the RightContent instead of staying properly aligned.
  • The window content does not resize responsively; instead, it becomes cropped.

Steps to reproduce the bug

  1. Maximize the window.
  2. Drag the window from the TitleBar control.
  3. Observe that the CenterContent overlaps the RightContent.
  4. Notice that the window content does not resize properly and becomes cropped.

Expected behavior

  • CenterContent should remain properly aligned and not overlap RightContent.
  • The window content should resize responsively instead of becoming cropped.

Screenshots

Recording.2025-03-13.124500.mp4

NuGet package version

WinUI 3 - Windows App SDK 1.7 Preview 1: 1.7.250208002-preview1

Windows version

Windows 11 (24H2): Build 26100

Additional context

These issues do not occur with the default TitleBar, they only appear when using the TitleBar control.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-TitleBarIssues related to custom window title bars.bugSomething isn't workingteam-ControlsIssue for the Controls team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions