Repository navigation
feat: Layout update - #22900
feat: Layout update#22900
Layout update#22900Conversation
There was a problem hiding this comment.
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
Layoutimplementation pieces (Layout.mux.cs,Layout.h.mux.cs) includingIndexBasedLayoutOrientation, invalidation events, and related debug/test fields. - Adds Uno-specific weak-event invalidation wiring for
MeasureInvalidated/ArrangeInvalidatedto 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.
There was a problem hiding this comment.
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.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22900/wasm-skia-net9/index.html |
There was a problem hiding this comment.
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.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22900/wasm-skia-net9/index.html |
|
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22900/wasm-skia-net9/index.html |
d8b3bbe to
95774d3
Compare
There was a problem hiding this comment.
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.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22900/wasm-skia-net9/index.html |
|
|
95774d3 to
5798fa7
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22900/wasm-skia-net9/index.html |
|
|
5798fa7 to
91858e2
Compare
There was a problem hiding this comment.
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.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22900/wasm-skia-net9/index.html |
|
|
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:
Screenshots Compare Test Runresults.Other information ℹ️