Skip to content

refactor!: Drop sync-generator skips gated on the pre-7.0 hierarchy - #24658

Merged
MartinZikmund merged 11 commits into
masterfrom
dev/mazi/syncgen-hierarchy-skips
Oct 2, 2026
Merged

MartinZikmund merged 11 commits into
masterfrom
dev/mazi/syncgen-hierarchy-skips

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: closes unoplatform/uno-private#2107

PR Type:

🔄 Refactoring

What changed? 🚀

The WinAppSDK sync generator had SkipMethod/SkipProperty/SkipEvent entries that only existed because Uno's pre-7.0 hierarchy put some members on different types than WinUI. This removes all of them, and SkipEvent goes 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 skipping comments into Skipping already declared:

  • FrameworkElement.DataContext/DataContextProperty/DataContextChanged
  • FrameworkElement.GetBindingExpression
  • UIElement.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 a FrameworkElement, as in WinUI. Uno took a UIElement. Grid's own layout reads the attached DPs directly (child.GetValue(RowProperty)), as WinUI does internally.

  • Transitions/TransitionsProperty moved from FrameworkElement to UIElement.

  • SetBinding moved from DependencyObject to FrameworkElement. That covers both the DP overload and the Uno-only string overload. The XAML generator used to emit __p1.SetBinding(...) into consuming assemblies on any DependencyObject. It now emits:

    • BindingOperations.SetBinding(target, dp, binding) (WinUI API) for dependency properties
    • the new Uno.UI.Xaml.BindingHelper.SetBinding(target, name, binding) for the string-keyed x:Bind/POCO path

    So bindings on brushes, transforms, etc. keep working. Internal callers use SetBindingInternal.

Also includes:

  • PackageDiff ignore entries (6.6 + 6.7 sets). The removed DependencyObject.SetBinding overloads were already matched by the BC26 regexes; they're now also listed explicitly.
  • Migration-guide entries under Members restricted to their WinUI declaring types, plus a checklist item.

Validation

  • Sync generator: the final regen with every hierarchy skip removed changes only comment lines. Each formerly skipped member is reported as Skipping already declared, and no stubs are emitted.
  • Source generator tests: 31 goldens regenerated via WRITE_EXPECTED. The verify run with it off: 482 passed / 0 failed / 14 skipped.
  • Compile: 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.
  • Unit tests: 4179 passed. 12 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.
  • Runtime tests (Skia desktop): Given_Grid*, Given_UIElement, Given_xBind, Given_DatePicker, Given_BitmapIcon: 664 passed. The 11 failures are all sub-pixel rounding (e.g. 26.67 vs 27) from running at 150% display scale.

PR Checklist ✅

Breaking changes (7.0):

  • DependencyObject.SetBinding: gone. Use FrameworkElement.SetBinding, or BindingOperations.SetBinding for non-FE objects.
  • FrameworkElement.TransitionsProperty: moved; use UIElement.TransitionsProperty.
  • Grid row/column accessors: now require a FrameworkElement-typed argument.
  • Libraries containing XAML: must be recompiled, because their generated code called DependencyObject.SetBinding. This is already required for 7.0 since BC26.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NwhyGmgSbuparoSjPEbGue

@github-actions github-actions Bot added area/code-generation Categorizes an issue or PR as relevant to code generation area/build Categorizes an issue or PR as relevant to build infrastructure area/automation Categorizes an issue or PR as relevant to project automation kind/documentation labels Sep 25, 2026
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 5m 33s —— View job


Review complete

  • Gather context (PR description, changed files list)
  • Review sync generator changes (Uno.WinAppSDKSyncGenerator/Generator.cs)
  • Review Grid/GridExtensions breaking change (FrameworkElement vs UIElement)
  • Review Transitions move (FrameworkElement → UIElement)
  • Review SetBinding move (DependencyObject → FrameworkElement) + XAML generator emission + BindingHelper
  • Review PackageDiffIgnore.xml and migration guide updates
  • Review test/golden file changes
  • Post inline findings
  • Post final summary

Verdict: ship (with 1 fix-first item)

1 issue found, posted inline:

  • Minor / process — build/PackageDiffIgnore.xml embeds the private issue reference uno-private#2107 in the new reason attributes (8 distinct entries, each duplicated across the 6.6/6.7 sets). AGENTS.md's "Public Documentation and Spec References" rule requires repo-tracked files to keep the dependency direction one-way — public artifacts shouldn't cite private trackers as normative context. The rest of the file already follows this (e.g. uno#8339 is a public issue), so these stand out. Easy fix: drop the uno-private#2107 suffix from the reason strings.

Cross-cutting observations (not blocking)

  • The mechanical scope is well-contained: the sync-generator skip removal, the three hierarchy moves (Grid accessors → FrameworkElement, Transitions → UIElement, SetBinding → FrameworkElement), and every call-site fixup are consistent with each other. I traced the XamlFileGenerator.cs emission change (prefix/bindingTarget refactor) against several regenerated goldens (WhInXaCa001, TeXBiReXLoEl, etc.) and the emitted BindingOperations.SetBinding(...)/BindingHelper.SetBinding(...) calls match the new call sites in both DP and POCO/x:Bind branches, including the implicit-this case.
  • Non-FrameworkElement call sites (ItemsControl, CommandingHelpers, BitmapIcon, XamlObjectBuilder, DependencyPropertyDetailsCollection, unit tests) were correctly repointed to SetBindingInternal/BindingOperations.SetBinding rather than left broken; a repo-wide grep for remaining .SetBinding( calls turned up only receivers that are still FrameworkElement-typed (e.g. TextBlock, Grid-tagged elements in Given_Binder.Indexer.cs), so nothing appears missed.
  • DatePicker.cs switches two Grid.SetColumn(...) calls to element.SetValue(Grid.ColumnProperty, ...) because the backing fields are typed UIElement, not FrameworkElement. Correct as written, though retyping those fields to FrameworkElement (if the runtime type always is one) would have kept the strongly-typed accessor — not blocking.
  • Commits are Conventional-Commits compliant with ! correctly applied to the three breaking-change commits; migrating-to-uno-7.md documents all three (SetBinding, Transitions, Grid accessors) without leaking the private issue number — good, that doc gets it right where the ignore-list doesn't.
  • I did not re-run the build/test suite myself in this environment (code-review by inspection only); the PR's own reported evidence (regenerated goldens, 482/0 source-gen tests, 4179 unit tests, runtime test run) lines up with what the diff shows.

Comment thread build/PackageDiffIgnore.xml Resolved
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/syncgen-hierarchy-skips branch from e7b63af to 381cc3f Compare September 25, 2026 22:21
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 41s —— View job


Review complete

  • Gather context (PR description, prior review, changed files list)
  • Check what changed since the last review (diffstat vs origin/master matches the PR's stated +280/-306 across 63 files exactly — no new commits since the prior pass)
  • Re-review sync generator / hierarchy-move changes against AGENTS.md
  • Verify prior fix-first item (private issue ref in PackageDiffIgnore.xml)
  • Post inline findings
  • Post final summary

Verdict: ship (with 1 fix-first item, unresolved from the prior pass)

1 issue found, posted inline on build/PackageDiffIgnore.xml:2833-2834: the new reason attributes (8 distinct entries, duplicated across the 6.6/6.7 sets) still embed the private tracker reference uno-private#2107. Per AGENTS.md's one-way dependency rule for repo-tracked files, this should be dropped — the rest of the file, and migrating-to-uno-7.md, already avoid it.

Cross-cutting observations (not blocking)

  • The branch is unchanged since the prior automated review (same commit set, same diffstat), so this pass re-verified rather than re-discovered: the Grid accessor narrowing to FrameworkElement, Transitions move to UIElement, and SetBinding move to FrameworkElement are internally consistent, and every non-FrameworkElement call site (ItemsControl, CommandingHelpers, BitmapIcon, XamlObjectBuilder, DependencyPropertyDetailsCollection, FrameworkElementExtensions) was correctly repointed to SetBindingInternal/BindingOperations.SetBinding.
  • UIElement.Properties.cs's new TransitionsProperty drops the ChangedCallback = true that the old FrameworkElement.Interface.cs declaration had — this is safe, since the removed OnTransitionsChanged callback body was empty (a no-op), not a behavior change.
  • XamlFileGenerator.cs's emission refactor (bindingTarget/prefix handling) correctly falls back to "this" when there's no receiver prefix, and the regenerated goldens match the new BindingOperations.SetBinding(...) / BindingHelper.SetBinding(...) call shapes.
  • Sync generator (Generator.cs): all removed SkipMethod/SkipProperty entries for Grid, FrameworkElement, UIElement line up with the member moves in this PR, and SkipEvent is correctly deleted now that it's unused.

Comment thread build/PackageDiffIgnore.xml Resolved
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/syncgen-hierarchy-skips branch from 381cc3f to 0b02687 Compare September 29, 2026 13:16
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 42s —— View job


Review complete

  • Gather context (PR description, prior reviews, changed files list)
  • Check what changed since the last review pass
  • Re-review against AGENTS.md
  • Verify prior fix-first item (private issue ref in PackageDiffIgnore.xml)
  • Post inline findings (none new — see below)
  • Post final summary

Verdict: ship (with 1 fix-first item, unresolved from prior passes)

No new commits since the last automated review (git diff origin/master...HEAD is byte-for-byte the same diffstat: 63 files, +282/-308). I independently re-verified every changed file rather than trusting the prior summaries, and reach the same conclusion.

1 issue remains unresolved, already flagged inline twice on build/PackageDiffIgnore.xml (lines ~2853-2854, 3429-3436, 4427-4428, 5003-5010): the new reason attributes still embed the private tracker reference uno-private#2107 (8 distinct entries, duplicated across the 6.6/6.7 sets). Per AGENTS.md's "Public Documentation and Spec References" rule, repo-tracked files must keep the dependency direction one-way — this file's other entries (e.g. uno#8339) and doc/articles/migrating-to-uno-7.md's equivalent section already avoid citing the private issue, so these are still the outliers. Not re-posting a third duplicate inline comment since nothing changed; the two existing inline threads on this file cover it.

Verification notes (this pass)

  • Uno.WinAppSDKSyncGenerator/Generator.cs: removed skips (Grid row/col accessors, FrameworkElement.GetBindingExpression/SetBinding, UIElement layout/visual DPs, FrameworkElement.DataContext) all correspond 1:1 to the member moves in this PR; SkipEvent is deleted along with its only caller.
  • DependencyObject.cs/FrameworkElement.mux.cs/BindingHelper.cs/BindingOperations.cs: SetBinding is gone from DependencyObject, re-added only on FrameworkElement (DP overload) and BindingHelper (string overload, matching the XAML generator's POCO/x:Bind emission); all non-FrameworkElement call sites (ItemsControl, CommandingHelpers, BitmapIcon, XamlObjectBuilder, DependencyPropertyDetailsCollection, FrameworkElementExtensions, BindingOperations) correctly use SetBindingInternal instead.
  • Grid.Properties.cs/GridExtensions.cs/Grid.cs: accessors now take FrameworkElement; Grid's own layout code was switched to child.GetValue(RowProperty) etc. (not the now-narrower Grid.GetRow), matching WinUI's internal read path. DatePicker.cs correctly switches its two call sites to SetValue(Grid.ColumnProperty, …) since those fields are UIElement-typed.
  • XamlFileGenerator.cs: the new bindingTarget (falls back to "this" when there's no prefix) is threaded correctly into both the BindingOperations.SetBinding(...) (DP) and BindingHelper.SetBinding(...) (POCO) emission branches; spot-checked against several regenerated goldens (TeXBiReXLoEl, WhInXaCa001) and the emitted calls match.
  • doc/articles/migrating-to-uno-7.md: documents all three breaking moves (SetBinding, Transitions, Grid accessors) with concrete migration steps, without leaking the private issue number.

Copilot AI balanced review requested due to automatic review settings October 1, 2026 07:33
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/syncgen-hierarchy-skips branch from 0b02687 to b942ca6 Compare October 1, 2026 07:33
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 53s —— View job


Review complete

  • Gather context (PR description, prior reviews, changed files list)
  • Check what changed since the last review pass
  • Re-review against AGENTS.md
  • Verify prior fix-first item (private issue ref in PackageDiffIgnore.xml)
  • Post inline findings (none new — see below)
  • Post final summary

Verdict: ship (with 1 fix-first item, unresolved from prior passes)

Only one commit landed since the last automated review: b942ca63 perf(datepicker): Box the spacer column index once (2026-10-01). Everything else is byte-for-byte unchanged (confirmed via git diff origin/master...HEAD --stat, matching the PR's own +284/-309 across 63 files).

New commit reviewed: DatePicker.cs replaces the two now-invalid Grid.SetColumn(m_tpFirstPickerSpacing, columnIndex) / Grid.SetColumn(m_tpSecondPickerSpacing, columnIndex) calls (fields are UIElement-typed, so they no longer satisfy the narrowed FrameworkElement parameter from this PR's Grid accessor change) with element.SetValue(Grid.ColumnProperty, Boxer.Box(columnIndex)). Verified the fields' declared type (UIElement m_tpFirstPickerSpacing/m_tpSecondPickerSpacing, line 79-80) and that Boxer.Box(int) is the repo's existing small-int caching helper (src/Uno.UI/Helpers/Boxes.cs) — correct and consistent with the codebase's boxing-avoidance convention. No issues.

1 issue remains unresolved (flagged inline twice already on prior passes, not re-posted a third time since the content is unchanged): build/PackageDiffIgnore.xml's new reason attributes (8 distinct entries, duplicated across the 6.6/6.7 sets, e.g. lines 2853-2854, 3429-3436, 4427-4428, 5003-5010) still embed the private tracker reference uno-private#2107. Per AGENTS.md's "Public Documentation and Spec References" rule, repo-tracked files must keep the dependency direction one-way — the rest of this file (e.g. uno#8339) and doc/articles/migrating-to-uno-7.md's equivalent section already avoid citing the private issue, so these remain the outliers.

Cross-cutting observations (not blocking)

  • Re-verified the core mechanical changes independently rather than trusting prior summaries: Generator.cs's skip removals map 1:1 to the member moves; DependencyObject.cs/FrameworkElement.mux.cs/BindingHelper.cs/BindingOperations.cs correctly relocate SetBinding (DP overload to FrameworkElement, string overload to BindingHelper, both internal callers routed through SetBindingInternal); Grid.Properties.cs/GridExtensions.cs/Grid.cs narrow accessors to FrameworkElement and switch Grid's own layout reads to child.GetValue(RowProperty) etc., matching WinUI's internal read path; XamlFileGenerator.cs's bindingTarget (falls back to "this" when there's no prefix) is threaded correctly into both emission branches.
  • PackageDiffIgnore.xml's stale comment ("The two SetBinding overloads the XAML generator emits into consuming assemblies stay public.") was correctly trimmed since those overloads no longer exist on DependencyObject.

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.

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 Medium severity · 2 Low severity

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 Transitions to UIElement, SetBinding to FrameworkElement, 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.

Comment thread doc/articles/migrating-to-uno-7.md Resolved
Comment thread src/Uno.UI/UI/Xaml/DependencyObject.cs Resolved
Copilot AI balanced review requested due to automatic review settings October 2, 2026 05:57
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 1s —— View job


Review complete

  • Gather context (PR description, prior review rounds, changed files list)
  • Check what changed since the last automated review pass
  • Verify the 3 previously-flagged fix-first items are resolved
  • Re-review remaining open Copilot finding (generator golden coverage)
  • Post inline findings
  • Post final summary

Verdict: ship

What changed since the last pass

Only one new commit landed: 5a16c33a docs: Address review feedback on 7.0 binding docs. It resolves every previously-flagged item:

  • build/PackageDiffIgnore.xml — all 8 uno-private#2107 references (duplicated across the 6.6/6.7 sets) are dropped; entries now read (breaking changes for 7.0), matching the file's existing convention. The one-way dependency rule in AGENTS.md is satisfied.
  • doc/articles/migrating-to-uno-7.md — the TransitionsProperty migration note now correctly states that FrameworkElement.TransitionsProperty still compiles (C# resolves the inherited static member) and only recompilation against 7.0 is required — this matches actual C# member-lookup semantics and fixes the overstated claim Copilot flagged.
  • src/Uno.UI/Helpers/ContextualAssemblyResolver.cs — the stale <see cref="DependencyObject.SetBinding(...)"> and the code sample calling the now-removed string overload are replaced with a valid BindingOperations.SetBinding cref and a compiling sample using TextBlock.TextProperty. Verified both compile against the new API surface.

Outstanding (non-blocking)

1 new inline finding (also previously raised by Copilot's review, still unaddressed): src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/XamlFileGenerator.cs:4319 — the POCO/non-DependencyObject x:Bind branch (GetDependencyObjectForXBind()) touched by this refactor has no golden-test coverage; all 17 goldens that exercise BindingHelper.SetBinding(...) hit the DependencyObject-owner path only. The call shape is unchanged from before the refactor, so this isn't a regression — just a pre-existing gap worth closing before it's relied on.

Not re-verified this pass

The mechanical core (sync-generator skip removal, Grid/Transitions/SetBinding hierarchy moves, XAML emission, call-site fixups, goldens) was independently re-verified across four prior automated passes and by a human reviewer (Xiaoy312, approved). No commits touched that code since; re-auditing it again would be redundant.
(branch)

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.

Copilot review overview

🟡 Changes recommended

The migration checklist still prescribes an unnecessary TransitionsProperty source change.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
Resolved since last review (2)

Comment thread doc/articles/migrating-to-uno-7.md Resolved
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 236911 found UI Test snapshots differences: skia-linux-screenshots: 116, skia-windows-screenshots: 132

Details
  • skia-linux-screenshots: 116 changed over 2454

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • CalendarView_Theming.png-dark
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • Buttons.png-dark
    • Buttons.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • ImageIconPage.png-dark
    • ImageIconPage.png
    • Examples.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • DisplayInformation.png-dark
  • skia-windows-screenshots: 132 changed over 2454

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Focus_FocusVisual_Properties.png-dark
    • Grid_left_column_Auto.png-dark
    • Grid_left_column_Auto.png
    • Grid_Margin_And_Padding.png-dark
    • Grid_Margin_And_Padding.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • Gamepad_Enumeration.png

@unodevops

Copy link
Copy Markdown
Contributor

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

MartinZikmund and others added 3 commits October 2, 2026 15:02
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
Copilot AI balanced review requested due to automatic review settings October 2, 2026 13:07
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/syncgen-hierarchy-skips branch from 5a16c33 to cfc7deb Compare October 2, 2026 13:07
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 53s —— View job


Review complete

  • Gather context (PR description, prior review rounds, changed files list)
  • Check what changed since the last automated review pass
  • Verify previously-flagged items (golden coverage, migration checklist line)
  • Re-review full diff against AGENTS.md
  • Post inline findings (none — see below)
  • Post final summary

Verdict: ship

0 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:

  • cfc7deb3 (test: Cover the x:Bind path for non-DependencyObject targets) — adds When_XBind_On_Non_DependencyObject_Property in Given_Binding.cs, binding a POCO's (Poco.Text) property via {x:Bind} from inside a Button.Tag. The regenerated golden (Out/Binding/WhXBiOnNoDeObPr/XCG_MainPage.cs:65) confirms the generator emits global::Uno.UI.Xaml.BindingHelper.SetBinding(__p1.GetDependencyObjectForXBind(), ...) — exactly the isOwnerDependencyObject == false branch in XamlFileGenerator.cs that both Copilot and the prior automated review flagged as uncovered. This closes that gap.
  • 2e24ae2a (docs: Drop the TransitionsProperty re-point step) — removes the erroneous "re-point FrameworkElement.TransitionsProperty at UIElement" instruction from the migration checklist (step 16 in migrating-to-uno-7.md), matching Copilot's finding that no source change is needed since C# resolves the inherited static member through the derived type — only recompilation is required, which is already covered by the preceding prose.

All three earlier fix-first items (private issue reference in PackageDiffIgnore.xml, overstated TransitionsProperty migration note, stale DependencyObject.SetBinding cref/sample in ContextualAssemblyResolver.cs) remain resolved from the prior 5a16c33a commit. With this pass, every open review thread (human and automated) on this PR is now addressed.

Not re-verified this pass

The mechanical core (sync-generator skip removal, Grid/Transitions/SetBinding hierarchy moves, XAML emission refactor, call-site fixups) was independently re-verified across five prior automated passes and approved by a human reviewer (Xiaoy312). No commits touched that code in this pass; re-auditing it again would be redundant.

Note on CI signal

The most recent Azure Pipelines run (236911) is reported as failed, and the screenshot-diff bot flagged 116/132 UI snapshot changes (skia-linux/skia-windows) on that run — worth confirming before merge whether these are expected fallout from the Grid/Transitions hierarchy moves (sub-pixel/layout timing, as seen in earlier runs) or a genuine regression, since this run's CI failure hasn't been triaged in the thread yet.

@unoplatform unoplatform deleted a comment from unodevops Oct 2, 2026
@unoplatform unoplatform deleted a comment from nventive-devops Oct 2, 2026
@unoplatform unoplatform deleted a comment from nventive-devops Oct 2, 2026
@unoplatform unoplatform deleted a comment from nventive-devops Oct 2, 2026
@unoplatform unoplatform deleted a comment from nventive-devops Oct 2, 2026
@unoplatform unoplatform deleted a comment from unodevops Oct 2, 2026
@unoplatform unoplatform deleted a comment from unodevops Oct 2, 2026
@unoplatform unoplatform deleted a comment from unodevops Oct 2, 2026
@unoplatform unoplatform deleted a comment from unodevops Oct 2, 2026
@unoplatform unoplatform deleted a comment from unodevops Oct 2, 2026
@unoplatform unoplatform deleted a comment from unodevops Oct 2, 2026
@unoplatform unoplatform deleted a comment from unodevops Oct 2, 2026
@unoplatform unoplatform deleted a comment from unodevops Oct 2, 2026

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.

Copilot review overview

🔵 Needs a closer look

It combines broad breaking API changes with source-generator and runtime binding changes that warrant final human review.

Review effort: Balanced
Findings: None

Resolved since last review (2)

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 236969 found UI Test snapshots differences: skia-linux-screenshots: 116, skia-windows-screenshots: 165

Details
  • skia-linux-screenshots: 116 changed over 2454

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • CalendarView_Theming.png-dark
    • ClipboardTests.png-dark
    • Buttons.png-dark
    • Buttons.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Examples.png
    • DisplayInformation.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • ImageBrushInList.png-dark
    • ImageBrushInList.png
  • skia-windows-screenshots: 165 changed over 2454

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • DisplayInformation.png-dark
    • Examples.png
    • Focus_FocusVisual_Properties.png-dark
    • Grid_Multi_Column_Span.png-dark
    • Grid_Multi_Column_Span.png
    • Grid_RowSpan_Auto_WithText.png-dark
    • Grid_RowSpan_Auto_WithText.png
    • Grid_RowSpan_Right.png-dark
    • Grid_RowSpan_Right.png
    • Grid_ScrollViewer.png-dark
    • Grid_ScrollViewer.png
    • ImageBrushInList.png-dark
    • ImageBrushInList.png

@MartinZikmund MartinZikmund added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Oct 2, 2026
@MartinZikmund
MartinZikmund merged commit 89b9d62 into master Oct 2, 2026
64 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/syncgen-hierarchy-skips branch October 2, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants