Repository navigation
chore: minor fixes - #23100
chore: minor fixes#23100
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes {StaticResource} resolution for lazily-materialized x:Load="False" subtrees by preserving/restoring the XAML resource scope during ElementStub.Materialize(), and adds a runtime regression test to ensure no ResourceBinding fallback is created when static resolution succeeds.
Changes:
- Make
ElementStubstore a capturedXamlScope(parse-time scope) and initialize it in the parameterless ctor. - Ensure
ElementStub.MaterializeInner()executes with the captured scope pushed (mirroringFrameworkTemplatebehavior). - Add/update a runtime test to validate static resolution for
x:Load=falsecontent without creatingResourceBinding.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/Uno.UI/UI/Xaml/ElementStub.cs |
Captures/initializes XAML scope for deferred materialization to restore correct {StaticResource} ancestor lookup chain. |
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml/Given_xLoad.cs |
Adds/adjusts regression test asserting no ResourceBinding is created when static resolution succeeds for x:Load=false. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
467b83d to
0f7b814
Compare
0f7b814 to
3d24bbf
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3d24bbf to
2be6e91
Compare
|
|
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23100/wasm-skia-net9/index.html |
|
@Mergifyio backport release/stable/6.6 |
✅ Backports have been createdDetails
|
…6.6/pr-23100 chore: minor fixes (backport #23100)
Summary
re: #23088 re: https://github.com/unoplatform/kahua-private/issues/403
🤖 Generated with Claude Code