Skip to content

feat: Layout update - #22900

Merged
MartinZikmund merged 6 commits into
masterfrom
dev/mazi/repeater-update
Apr 3, 2026
Merged

MartinZikmund merged 6 commits into
masterfrom
dev/mazi/repeater-update

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Mar 27, 2026 •

Copy link
Copy Markdown
Member

GitHub Issue: closes: #22901, closes #22903

PR Type: ✨ Feature

What is the current behavior? 🤔

What is the new behavior? 🚀

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Other information ℹ️

Copilot AI review requested due to automatic review settings March 27, 2026 09:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR ports/updates the Repeater Layout implementation to match the WinUI (MUX) surface area while adding Uno-specific hooks (weak event subscriptions) and test hooks to support layout debugging and runtime tests.

Changes:

  • Introduces MUX-based Layout implementation pieces (Layout.mux.cs, Layout.h.mux.cs) including IndexBasedLayoutOrientation, invalidation events, and related debug/test fields.
  • Adds Uno-specific weak-event invalidation wiring for MeasureInvalidated/ArrangeInvalidated to avoid leaks (Layout.uno.cs).
  • Adds layout test hooks (LayoutsTestHooks.cs) and new runtime tests for the new APIs.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/Uno.UI/UI/Xaml/Controls/Repeater/LayoutsTestHooks.cs Adds test hook API for querying/forcing layout debug state and raising related events.
src/Uno.UI/UI/Xaml/Controls/Repeater/Layout.uno.cs Adds Uno-only weak-event registration and hooks into layout invalidation to prevent leaks.
src/Uno.UI/UI/Xaml/Controls/Repeater/Layout.mux.cs Adds core MUX Layout behaviors/events/properties and test/debug plumbing.
src/Uno.UI/UI/Xaml/Controls/Repeater/Layout.h.mux.cs Adds MUX header-equivalent members/fields, including CreateDefaultItemTransitionProvider().
src/Uno.UI/UI/Xaml/Controls/Repeater/Layout.cs Restructures the base Layout class file to a minimal partial declaration and doc comment.
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml.Controls/Layout.cs Updates generated output to skip members now implemented in source partials.
src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/Repeater/LayoutTests.uno.cs Adds Uno-specific runtime tests for IndexBasedLayoutOrientation and default transitions API.
src/Uno.UI.RuntimeTests/MUX/Microsoft_UI_Xaml_Controls/Repeater/LayoutTests.cs Minor formatting-only adjustment in a helper method.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings March 27, 2026 09:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MartinZikmund
MartinZikmund enabled auto-merge March 27, 2026 10:24
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Mar 27, 2026
@unodevops

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings March 27, 2026 13:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 204089 has failed on Uno.UI - CI.

@MartinZikmund
MartinZikmund disabled auto-merge March 27, 2026 18:44
@MartinZikmund
MartinZikmund enabled auto-merge March 27, 2026 18:46
@unodevops

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings March 30, 2026 11:12
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/repeater-update branch from d8b3bbe to 95774d3 Compare March 30, 2026 11:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 204417 has failed on Uno.UI - CI.

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/repeater-update branch from 95774d3 to 5798fa7 Compare March 31, 2026 10:46
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 204715 has failed on Uno.UI - CI.

Copilot AI review requested due to automatic review settings April 3, 2026 08:06
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/repeater-update branch from 5798fa7 to 91858e2 Compare April 3, 2026 08:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund MartinZikmund added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Apr 3, 2026
@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 205429 has failed on Uno.UI - CI.

@MartinZikmund
MartinZikmund merged commit f87ad32 into master Apr 3, 2026
64 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/repeater-update branch April 3, 2026 22:23
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

4 participants