Skip to content

Window content not respond to window size change #5670

@wenya90

Description

@wenya90

Describe the bug

When using TitleBar Control, snap window to/from screen top, the window size changes,but the layout content in the window does not change, and no window resize message received from the window

Steps to reproduce the bug

  1. Using conotrol in Window layout
<Grid>
    <TitleBar x:Name="titleBar" Title="WinUI EX Test App" IsPaneToggleButtonVisible="True" IsBackButtonVisible="True"
            IsBackButtonEnabled="True" >
        <TitleBar.IconSource>
            <ImageIconSource ImageSource="ms-appx:///Images/logo.png" />
        </TitleBar.IconSource>
        <TitleBar.RightHeader>
            <HyperlinkButton Content="WinUIEx on GitHub" NavigateUri="https://github.com/dotMorten/WinUIEx" />
        </TitleBar.RightHeader>
    </TitleBar>
</Grid>
  1. in window constuctor set:
ExtendsContentIntoTitleBar = true;
SetTitleBar(titleBar);

  1. drag the app window to/from the top edge of the screen

Expected behavior

the window size changes,but the layout content in the window does not change

Screenshots

snapWIN.mp4

NuGet package version

Windows App SDK 1.7.3: 1.7.250606001

Packaging type

Unpackaged

Windows version

Windows 11 version 24H2 LTSC (26100, June Update)

IDE

Visual Studio 2022

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions