Skip to content

[Repeater] Layout base — IndexBasedLayoutOrientation + CreateDefaultItemTransitionProvider #22901

Closed

Description

@MartinZikmund

Scope

Add the two missing APIs to the Layout base class, split into the correct partial-class file layout per the WinUI porting conventions.

WinUI sources to port (deltas)

  • Layout.h / Layout.cpp — m_indexBasedLayoutOrientation field, IndexBasedLayoutOrientation property, SetIndexBasedLayoutOrientation(), CreateDefaultItemTransitionProvider() virtual

Uno files to modify

  • src/Uno.UI/UI/Xaml/Controls/Repeater/Layout.cs — declaration only (partial class)
  • src/Uno.UI/UI/Xaml/Controls/Repeater/Layout.h.mux.cs — fields + inline methods from header (including CreateDefaultItemTransitionProvider)
  • src/Uno.UI/UI/Xaml/Controls/Repeater/Layout.mux.cs — method implementations from .cpp
  • src/Uno.UI/UI/Xaml/Controls/Repeater/Layout.uno.cs — Uno-specific WeakEventHelper additions
  • src/Uno.UI/UI/Xaml/Controls/Repeater/LayoutsTestHooks.cs — new file, Layout-relevant debug hooks (LinedFlowLayout parts stubbed with TODO Uno:)
  • src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml.Controls/Layout.cs — mark 3 members as already declared

API tests to port

  • LayoutTests.cs delta — tests for IndexBasedLayoutOrientation and CreateDefaultItemTransitionProvider
  • New Uno-specific tests in LayoutTests.uno.cs

Porting rules

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

  • MUX reference comment at top of each file
  • Partial-class file layout (.cs / .mux.cs / .h.mux.cs)
  • XML doc comments on all public/protected members sourced from Microsoft Learn
  • Default to most restrictive visibility; only widen when IDL/docs/stubs confirm it

Dependencies

None — can be worked in parallel with #2 and #4.

Risk / Complexity

🟢 Low risk · Small

Activity

  1. changed the title [-]feat: [Repeater] Layout base — IndexBasedLayoutOrientation + CreateDefaultItemTransitionProvider[/-] [+][Repeater] Layout base — IndexBasedLayoutOrientation + CreateDefaultItemTransitionProvider[/+] on Mar 27, 2026
  2. github-actions commented on May 4, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  3. locked as resolved and limited conversation to collaborators on May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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