Skip to content

Changing Grid.Row does not update layout until window is resized #20404

Open
@spadapet

Description

@spadapet

Description

I could only repro on Windows (WinUI). For the main page, if a Grid.Row changes for a child of the root grid, layout is not updated. Resizing the window can trigger the layout update.

While Grid.Row may not change through code usually, it will often change using XAML Hot Reload as the page is being designed.

Steps to Reproduce

  1. Download and open my test project from:
  2. Open the project GridRowChanges.sln in VS.
  3. Set debugger to Windows, then F5 to build and debug

image

  1. Click the "Toggle Grid Row" button, which is supposed to move the green box into the top grid cell. Nothing happens with layout:

image

  1. Resize the window, now layout is updated:

image

The second box should move as soon as the button is clicked, which happens on Android just fine.

Link to public reproduction project repository

https://github.com/spadapet/maui_bugs/tree/main/GridRowChanges

Version with bug

8.0.6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

net8.0-windows10.0.19041.0

Did you find any workaround?

Resize the window or create other changes that force a layout update

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterp/2Work that is important, but is currently not scheduled for releasepartner/hot-reload-xamlIssues impacting XAML Hot Reload experiencespartner/hot-reload-xaml-full-page-fixedIssues with XAML incremental hot reload that are fixed after a full page hot reloadpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions