Skip to content

[Repeater] Port ItemCollectionTransition type system (new types) #22904

Closed

Description

@MartinZikmund

Scope

Port the 4 new transition types that replace the old ElementAnimator approach. These are self-contained and don't modify any existing code.

WinUI sources to port

  • ItemCollectionTransition.h/.cpp — Transition descriptor (operation, triggers, element, old/new bounds)
  • ItemCollectionTransitionProgress.h/.cpp — Progress tracker returned by Start()
  • ItemCollectionTransitionCompletedEventArgs.h/.cpp — Event args for the TransitionCompleted event
  • ItemCollectionTransitionProvider.h/.cpp — Abstract base with per-frame batching via CompositionTarget.Rendering and keep-alive DispatcherTimer

Uno files to create

  • src/Uno.UI/UI/Xaml/Controls/Repeater/ItemCollectionTransition.cs
  • src/Uno.UI/UI/Xaml/Controls/Repeater/ItemCollectionTransitionProgress.cs
  • src/Uno.UI/UI/Xaml/Controls/Repeater/ItemCollectionTransitionCompletedEventArgs.cs
  • src/Uno.UI/UI/Xaml/Controls/Repeater/ItemCollectionTransitionProvider.cs

Generated stubs to update

  • Generated/.../ItemCollectionTransition.cs
  • Generated/.../ItemCollectionTransitionProgress.cs
  • Generated/.../ItemCollectionTransitionCompletedEventArgs.cs
  • Generated/.../ItemCollectionTransitionProvider.cs
  • Generated/.../ItemCollectionTransitionTriggers.cs (enum)
  • Generated/.../ItemCollectionTransitionOperation.cs (enum)

API tests to port

  • Full port of ItemCollectionTransitionProviderTests.cs (transition provider add/remove/move operations and animation filtering)

Porting rules

All work must follow .github/agents/winui-porting-agent.md and the /winui-port skill.
Note: ItemCollectionTransitionProvider uses CompositionTarget.Rendering and DispatcherTimer for batching — these need Uno-specific adaptation where necessary.

Dependencies

None — can be worked in parallel with #22901 and #22902.

Risk / Complexity

🟢 Low risk · Medium — entirely new types, no impact on existing code

Activity

  1. changed the title [-]feat: [Repeater] Port ItemCollectionTransition type system (new types)[/-] [+][Repeater] Port ItemCollectionTransition type system (new types)[/+] on Mar 27, 2026
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