Repository navigation
refactor(controls)!: Remove no-op OnVerticalContentAlignmentChanged (BC34) - #23747
Conversation
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23747/wasm-skia-net9/index.html |
|
The build 222144 found UI Test snapshots differences: Details
|
|
|
337380a to
3949a80
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23747/wasm-skia-net9/index.html |
|
The build 222655 found UI Test snapshots differences: Details
|
3949a80 to
7fd95c0
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23747/wasm-skia-net9/index.html |
|
The build 223588 found UI Test snapshots differences: Details
|
|
|
7fd95c0 to
8cef550
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23747/wasm-skia-net9/index.html |
|
The build 224356 found UI Test snapshots differences: Details
|
|
|
8cef550 to
2c8bc23
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23747/wasm-skia-net9/index.html |
|
The build 224472 found UI Test snapshots differences: Details
|
|
Tick the box to add this pull request to the merge queue (same as
|
…BC34) Delete the empty `TextBox.OnVerticalContentAlignmentChanged` override and the `ContentPresenter` base `On[Vertical|Horizontal]ContentAlignmentChanged` virtuals. All were no-ops: the `...Partial` hooks were never implemented on any platform, and layout invalidation is still driven by the `AffectsArrange` metadata option on the DependencyProperties. Neither is emitted by the DependencyProperty mixin generator (it only emits the Control base), so nothing regenerates them. The Horizontal twin is removed alongside Vertical to keep ContentPresenter symmetric and closer to the WinUI surface. Registered the removals under PackageDiffIgnore <IgnoreSet baseVersion="6.5">. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2c8bc23 to
88f59da
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23747/wasm-skia-net9/index.html |
|
The build 224747 found UI Test snapshots differences: Details
|
GitHub Issue: #8339
PR Type:
💬 Other... Breaking change (API alignment with WinUI)
What changed? 🚀
Removes a Uno-only no-op API surface around content-alignment change notifications (BC34 of the Phase 5 breaking-changes wave):
TextBox.OnVerticalContentAlignmentChanged— deleted the emptyprotected override. It overrodeControl's (mixin-generated) virtual with an empty body to suppress it, but that base is itself a no-op (its…Partialhooks are never implemented), so the override suppressed nothing.ContentPresenter.OnVerticalContentAlignmentChanged/OnHorizontalContentAlignmentChanged— deleted bothprotected virtualmethods and their unusedpartial void …Partialhooks. WinUI'sContentPresenterexposes neither. Layout invalidation is unchanged: it is driven by theFrameworkPropertyMetadataOptions.AffectsArrangeoption already on bothDependencyPropertyregistrations. The change-callback lambdas (which only forwarded to the removed methods) are dropped, leaving aFrameworkPropertyMetadata(defaultValue, AffectsArrange)metadata.The Horizontal twin is removed alongside Vertical so
ContentPresenterstays symmetric and closer to the WinUI surface.DependencyPropertyMixinGeneratoremitsOn…ContentAlignmentChangedonly forControl(notTextBox, notContentPresenter). Both removed members are hand-written and re-emitted by nothing, so no generator change was needed.Control's base virtual is untouched, soTextBoxstill inherits an (inherited, no-op)OnVerticalContentAlignmentChanged.Validation
SamplesApp.Skia.Generic(net10.0 Skia) builds clean (0 warnings / 0 errors), transitively compilingUno.UI,Uno.UI.RuntimeTests, and the samples.…Partialhooks were never implemented on any platform;AffectsArrangeretained), so compile + PackageDiff coverage is sufficient — no runtime test added.PackageDiffIgnore.xml(6.5 baseline) gets three<Methods>entries for the removedTextBox/ContentPresentermethods.PR Checklist ✅
AffectsArrangeunchanged).Screenshots Compare Test Runresults — N/A (no visual change).Breaking change — impact & migration path
overrideContentPresenter.OnVerticalContentAlignmentChanged/OnHorizontalContentAlignmentChanged, orTextBox.OnVerticalContentAlignmentChanged, no longer compile.DependencyPropertyChangedCallbackonVerticalContentAlignmentProperty/HorizontalContentAlignmentPropertyinstead. This matches WinUI, which never exposed these virtuals.