Repository navigation
refactor!: Drop sync-generator skips gated on the pre-7.0 hierarchy - #24658
Conversation
|
Claude finished @MartinZikmund's task in 5m 33s —— View job Review complete
Verdict: ship (with 1 fix-first item)1 issue found, posted inline:
Cross-cutting observations (not blocking)
|
e7b63af to
381cc3f
Compare
|
Claude finished @MartinZikmund's task in 1m 41s —— View job Review complete
Verdict: ship (with 1 fix-first item, unresolved from the prior pass)1 issue found, posted inline on Cross-cutting observations (not blocking)
|
381cc3f to
0b02687
Compare
|
Claude finished @MartinZikmund's task in 1m 42s —— View job Review complete
Verdict: ship (with 1 fix-first item, unresolved from prior passes)No new commits since the last automated review ( 1 issue remains unresolved, already flagged inline twice on Verification notes (this pass)
|
0b02687 to
b942ca6
Compare
|
Claude finished @MartinZikmund's task in 1m 53s —— View job Review complete
Verdict: ship (with 1 fix-first item, unresolved from prior passes)Only one commit landed since the last automated review: New commit reviewed: 1 issue remains unresolved (flagged inline twice already on prior passes, not re-posted a third time since the content is unchanged): Cross-cutting observations (not blocking)
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The POCO generator path remains untested, and migration/API documentation contains stale or inaccurate guidance.
Review effort: Balanced
Findings: 1
Open (3)
What changed in this PR
Aligns Uno’s XAML hierarchy and binding APIs with WinUI while removing obsolete sync-generator skips.
Changes:
- Moves
TransitionstoUIElement,SetBindingtoFrameworkElement, and narrows Grid accessors. - Updates XAML binding emission and internal binding call sites.
- Regenerates API and source-generator outputs and updates migration guidance.
Review findings: 3 unresolved issues: two documentation defects and one source-generator test gap.
| File | Description |
|---|---|
src/Uno.WinAppSDKSyncGenerator/Generator.cs |
Removes obsolete hierarchy skips. |
src/Uno.UI/UI/Xaml/UIElement.Properties.cs |
Declares Transitions on UIElement. |
src/Uno.UI/UI/Xaml/Markup/Reader/XamlObjectBuilder.cs |
Uses internal binding API. |
src/Uno.UI/UI/Xaml/FrameworkElementExtensions.cs |
Uses internal string binding. |
src/Uno.UI/UI/Xaml/FrameworkElement.mux.cs |
Adds public SetBinding. |
src/Uno.UI/UI/Xaml/FrameworkElement.Interface.cs |
Removes former Transitions declaration. |
src/Uno.UI/UI/Xaml/DependencyPropertyDetailsCollection.cs |
Updates hot-reload binding cloning. |
src/Uno.UI/UI/Xaml/DependencyObject.cs |
Removes public Uno-only binding overloads. |
src/Uno.UI/UI/Xaml/DependencyObject.Binder.cs |
Renames internal binding calls. |
src/Uno.UI/UI/Xaml/Data/BindingOperations.cs |
Routes through internal binding API. |
src/Uno.UI/UI/Xaml/Data/BindingHelper.cs |
Adds generated string-binding helper. |
src/Uno.UI/UI/Xaml/Controls/MenuFlyout/CommandingHelpers.cs |
Updates internal binding calls. |
src/Uno.UI/UI/Xaml/Controls/ItemsControl/ItemsControl.cs |
Updates content binding call. |
src/Uno.UI/UI/Xaml/Controls/Icons/BitmapIcon.cs |
Updates image binding call. |
src/Uno.UI/UI/Xaml/Controls/Grid/GridExtensions.cs |
Narrows fluent helpers to FrameworkElement. |
src/Uno.UI/UI/Xaml/Controls/Grid/Grid.Properties.cs |
Aligns Grid accessor signatures. |
src/Uno.UI/UI/Xaml/Controls/Grid/Grid.cs |
Reads attached properties directly. |
src/Uno.UI/UI/Xaml/Controls/DatePicker/DatePicker.cs |
Sets Grid columns directly. |
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml/UIElement.cs |
Regenerated API markers. |
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml/FrameworkElement.cs |
Regenerated API markers. |
src/Uno.UI/Generated/3.0.0.0/Microsoft.UI.Xaml.Controls/Grid.cs |
Regenerated Grid markers. |
src/Uno.UI.UnitTests/DependencyProperty/Given_DependencyProperty.Weak.cs |
Updates internal binding tests. |
src/Uno.UI.UnitTests/DependencyProperty/Given_DependencyProperty.StandardProperty.cs |
Updates string-binding test. |
src/Uno.UI.UnitTests/DependencyProperty/Given_DependencyProperty.Propagation.cs |
Updates animation binding test. |
src/Uno.UI.UnitTests/DependencyProperty/Given_DependencyProperty.ManualPropagation.cs |
Updates non-FE binding tests. |
src/Uno.UI.UnitTests/BinderTests/Given_Binder.PocoBinding.cs |
Updates POCO binding tests. |
src/Uno.UI.UnitTests/BinderTests/Given_Binder.DependencyPropertyPath.cs |
Updates path binding test. |
src/Uno.UI.UnitTests/BinderTests/Given_Binder.cs |
Updates binder tests. |
src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Given_UIElement.DataContext.cs |
Uses WinUI binding API. |
src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.cs |
Emits static binding helpers. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Parser.Errors/WhInXaCa003/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Parser.Errors/WhInXaCa002/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Parser.Errors/WhInXaCa001/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Parser.Errors/WhInXaCa001_InReSoPr/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Parser.Errors/WhInXaCa001_InReSoMo/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Parser.Errors/WhInXaCa001_BiEr/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/MvvmGeneratedMembers/WOPAE_name/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/MvvmGeneratedMembers/WOPAE_m_name/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/MvvmGeneratedMembers/WOPAE__name/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/MvvmGeneratedMembers/WOPADNE/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/MvvmGeneratedMembers/WNBOP/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/MvvmGeneratedMembers/WBOP/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/MarkupExtension/TeCoAnCoExInSaNa/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/LazyLoading/WhLoChHaBi/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/HotReloadEnabledInBuild/SeOrSoLoInOuFoPaLeRe/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/HotReloadEnabledInBuild/SeOrSoLoInInOuFoDeObThArFrEl/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/WhXaObWiXaObPr/XCG_Binding_Xaml_Object_With_Xaml_Object_Properties.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/WhXaObWiCoPr/XCG_Binding_Xaml_Object_With_Common_Properties.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/WhStXBiPrInDaTeWiDaTy/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/WhBiElNaInTe/XCG_Binding_ElementName_In_Template.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/TeXBiReXLoEl/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/TeTwWa/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/TeTeInXLoEl/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/TeReSoShSy/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/TeReSoFuXmSy/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/TeReSoExSy/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/TePaXBiReXLoEl/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/TeInDeFrAn/XCG_MainPage.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/TeDeBiMoInDaTeInReDi/XCG_MyResourceDictionary.cs |
Regenerated golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/TeBaTyNoSpInCoBe/XCG_MainPage.cs |
Regenerated string-binding golden. |
src/SourceGenerators/Uno.UI.SourceGenerators.Tests/Out/Binding/TeAcAr/XCG_MainPage.cs |
Regenerated golden. |
doc/articles/migrating-to-uno-7.md |
Documents breaking API changes. |
build/PackageDiffIgnore.xml |
Records expected API removals. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
Claude finished @MartinZikmund's task in 2m 1s —— View job Review complete
Verdict: shipWhat changed since the last passOnly one new commit landed:
Outstanding (non-blocking)1 new inline finding (also previously raised by Copilot's review, still unaddressed): Not re-verified this passThe mechanical core (sync-generator skip removal, |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24658/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24658/docs/index.html |
|
The build 236911 found UI Test snapshots differences: Details
|
|
|
DataContext, DataContextChanged, GetBindingExpression and the UIElement Opacity/Visibility/IsHitTestVisible/RenderTransform(Origin) members now live on the same types as in WinUI, so the generator matches them. Refs unoplatform/uno-private#2107 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NwhyGmgSbuparoSjPEbGue
WinUI's Grid.Get/Set{Row,Column,RowSpan,ColumnSpan} take a
FrameworkElement, Uno took a UIElement. Grid's own layout reads the
attached DPs directly, as WinUI does.
Refs unoplatform/uno-private#2107
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NwhyGmgSbuparoSjPEbGue
WinUI declares Transitions and TransitionsProperty on UIElement. Refs unoplatform/uno-private#2107 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NwhyGmgSbuparoSjPEbGue
Master's boxing analyzer (UnoInternal0002) rejects the raw int that the FrameworkElement-typed Grid accessors left in SetValue. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014vRr9HufCgBEVgt1z8J5Ay
Drop private tracker refs from PackageDiffIgnore reasons, soften the TransitionsProperty migration note, and fix stale SetBinding crefs. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G7PsEU6gSpLZXrYuK8WWpt
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DNK1FkwVycsFTk4kM4hq3n
5a16c33 to
cfc7deb
Compare
|
Claude finished @MartinZikmund's task in 53s —— View job Review complete
Verdict: ship0 new issues. Two commits landed since the last automated pass, and both are targeted fixes for the two previously-open Copilot findings — no new problems introduced:
All three earlier fix-first items (private issue reference in Not re-verified this passThe mechanical core (sync-generator skip removal, Note on CI signalThe most recent Azure Pipelines run (236911) is reported as failed, and the screenshot-diff bot flagged 116/132 UI snapshot changes ( |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24658/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-24658/docs/index.html |
|
The build 236969 found UI Test snapshots differences: Details
|


GitHub Issue: closes unoplatform/uno-private#2107
PR Type:
🔄 Refactoring
What changed? 🚀
The WinAppSDK sync generator had
SkipMethod/SkipProperty/SkipEvententries that only existed because Uno's pre-7.0 hierarchy put some members on different types than WinUI. This removes all of them, andSkipEventgoes away entirely since it's now empty.Skips that were already stale (the members are on the right type after BC26/BC58 and #24375). The regen only turns
Forced skippingcomments intoSkipping already declared:FrameworkElement.DataContext/DataContextProperty/DataContextChangedFrameworkElement.GetBindingExpressionUIElement.Opacity/Visibility/IsHitTestVisible/RenderTransform/RenderTransformOrigin(+ their DPs)Skips that were hiding real mismatches, now aligned with WinUI (breaking, 7.0):
Grid.Get/Set{Row,Column,RowSpan,ColumnSpan}take aFrameworkElement, as in WinUI. Uno took aUIElement. Grid's own layout reads the attached DPs directly (child.GetValue(RowProperty)), as WinUI does internally.Transitions/TransitionsPropertymoved fromFrameworkElementtoUIElement.SetBindingmoved fromDependencyObjecttoFrameworkElement. That covers both the DP overload and the Uno-only string overload. The XAML generator used to emit__p1.SetBinding(...)into consuming assemblies on anyDependencyObject. It now emits:BindingOperations.SetBinding(target, dp, binding)(WinUI API) for dependency propertiesUno.UI.Xaml.BindingHelper.SetBinding(target, name, binding)for the string-keyed x:Bind/POCO pathSo bindings on brushes, transforms, etc. keep working. Internal callers use
SetBindingInternal.Also includes:
DependencyObject.SetBindingoverloads were already matched by the BC26 regexes; they're now also listed explicitly.Validation
Skipping already declared, and no stubs are emitted.WRITE_EXPECTED. The verify run with it off: 482 passed / 0 failed / 14 skipped.Uno.UI,Uno.UI.UnitTests,Uno.UI.RuntimeTests.Skia,SamplesApp(net11.0) all build clean. SamplesApp is the broad check for the new XAML emission.When_Gregorian_FixedDate*calendar tests failed locally. That code isn't touched here, so they look environmental, but I haven't confirmed they fail on master.Given_Grid*,Given_UIElement,Given_xBind,Given_DatePicker,Given_BitmapIcon: 664 passed. The 11 failures are all sub-pixel rounding (e.g.26.67vs27) from running at 150% display scale.PR Checklist ✅
Screenshots Compare Test Runresults.Breaking changes (7.0):
DependencyObject.SetBinding: gone. UseFrameworkElement.SetBinding, orBindingOperations.SetBindingfor non-FE objects.FrameworkElement.TransitionsProperty: moved; useUIElement.TransitionsProperty.FrameworkElement-typed argument.DependencyObject.SetBinding. This is already required for 7.0 since BC26.🤖 Generated with Claude Code
https://claude.ai/code/session_01NwhyGmgSbuparoSjPEbGue