Skip to content

[Repeater] ItemsRepeater + ViewportManager + ViewManager structural sync #22906

Closed

Description

@MartinZikmund

Scope

Sync the core ItemsRepeater, ViewportManager, and ViewManager with the latest WinUI structural changes. The WinUI ViewportManagerWithPlatformFeatures.cpp is nearly double the Uno version (1235 vs 679 lines), indicating substantial new logic.

WinUI sources to port (deltas)

  • ItemsRepeater.h/.cpp — EnsureDefaultLayoutState(), GetEffectiveLayout(), GetDefaultLayout(), m_wasLayoutChangedCalled, updated OnLayoutChanged() (null-layout handling, CreateDefaultItemTransitionProvider hookup via m_ownsTransitionProvider)
  • ViewportManager.h — New abstract methods (e.g. ResetLayoutRealizationWindowCacheBuffer())
  • ViewportManagerWithPlatformFeatures.h/.cpp — Full delta sync
  • ViewManager.h/.cpp — Full delta sync

Uno files to modify

  • src/Uno.UI/UI/Xaml/Controls/Repeater/ItemsRepeater.cs
  • src/Uno.UI/UI/Xaml/Controls/Repeater/ViewportManager.cs
  • src/Uno.UI/UI/Xaml/Controls/Repeater/ViewportManagerWithPlatformFeatures.cs
  • src/Uno.UI/UI/Xaml/Controls/Repeater/ViewManager.cs

API tests to port

  • Full sync of ViewportTests.cs (8 tests), EffectiveViewportScrollViewerTests.cs (5 tests), EffectiveViewportScrollPresenterTests.cs (4 tests)
  • Delta from ViewManagerTests.cs (15 tests) and RepeaterTests.cs (15 tests)

Porting rules

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

Dependencies

Requires #22905 (TransitionManager must exist for OnLayoutChanged hookup).

Risk / Complexity

🔴 High risk · Large — ViewportManager is fundamental to virtualization; ItemsRepeater lifecycle is sensitive to regressions

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