Skip to content

[Repeater] FlowLayoutAlgorithm + layout implementations sync #22907

Closed

Description

@MartinZikmund

Scope

Sync FlowLayoutAlgorithm, ElementManager, and all three existing virtualizing layout implementations (StackLayout, FlowLayout, UniformGridLayout) with the latest WinUI sources.

WinUI sources to port (deltas)

  • FlowLayoutAlgorithm.h/.cpp — ~170 lines of additions/changes vs current Uno port
  • ElementManager.h/.cpp — ~25 lines of additions
  • StackLayout.h/.cpp + StackLayoutState.h/.cpp
  • FlowLayout.h/.cpp + FlowLayoutState.h/.cpp
  • UniformGridLayout.h/.cpp + UniformGridLayoutState.h/.cpp

Uno files to modify

  • src/Uno.UI/UI/Xaml/Controls/Repeater/FlowLayoutAlgorithm.cs
  • src/Uno.UI/UI/Xaml/Controls/Repeater/FlowLayoutAlgorithm.OrientationBasedMeasures.cs
  • src/Uno.UI/UI/Xaml/Controls/Repeater/ElementManager.cs
  • src/Uno.UI/UI/Xaml/Controls/Repeater/StackLayout.cs + StackLayoutState.cs
  • src/Uno.UI/UI/Xaml/Controls/Repeater/FlowLayout.cs + FlowLayoutState.cs
  • src/Uno.UI/UI/Xaml/Controls/Repeater/UniformGridLayout/UniformGridLayout.cs + UniformGridLayoutState.cs

API tests to port

  • Full sync of FlowLayoutTests.cs (35 tests)
  • Full sync of FlowLayoutCollectionChangeTests.cs (14 tests)
  • Full sync of LayoutTests.cs (9 tests)

Porting rules

All work must follow .github/agents/winui-porting-agent.md and the /winui-port skill.

Dependencies

Requires #22903 (IndexBasedLayoutOrientation wiring) and #22906 (structural sync).

Risk / Complexity

🟡 Medium risk · Large — layout algorithm changes can cause subtle rendering/virtualization regressions; run full runtime test suite after

Activity

  1. github-actions commented on Jul 26, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  2. added
    stale
    on Jul 26, 2026
  3. removed
    stale
    on Jul 29, 2026
  4. Jen-Uno commented on Sep 30, 2026

    @Jen-Uno
    Contributor

    QA: closing out without a manual pass. This was fixed by #23406, the same PR as #22908, and that PR ships with automated tests (ItemsViewSummaryPage.xaml, AspectRatioRespectingControl.cs, FlowLayoutCollectionChangeTests.mux.cs and 8 more) that exercise the change.

    If you still see this behaviour on a build that includes that PR, please reopen or comment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions