Repository navigation
Conversation
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23843/wasm-skia-net9/index.html |
|
The build 223675 found UI Test snapshots differences: Details
|
|
|
84d3f5d to
e5cc9b8
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23843/wasm-skia-net9/index.html |
|
The build 224340 found UI Test snapshots differences: Details
|
e5cc9b8 to
883dc14
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23843/wasm-skia-net9/index.html |
|
The build 224465 found UI Test snapshots differences: Details
|
|
|
FeatureConfiguration.Control.UseLegacyContentAlignment was a Uno-only opt-in that flipped Control's default HorizontalContentAlignment/VerticalContentAlignment from the WinUI-correct Center/Center back to legacy Left/Top. It defaulted to false, so removal is source-breaking only: the default was already Center/Center; only apps that explicitly set the flag to true are affected. Hard-remove it (no [Obsolete] shim): - DependencyPropertyMixinGenerator: inline the Center/Center defaults, dropping the ternary that read the flag. - FeatureConfiguration: delete the now-empty Control holder. - PackageDiffIgnore (6.6): ignore the removed Control holder + the flag get/set. - Given_ContentControl: regression guard locking the Center/Center default. - migrating-to-uno-7.md: migration note for apps that set the flag. BC45 of the 7.0 breaking-changes rollup (#8339). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
883dc14 to
bdb4aaf
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23843/wasm-skia-net9/index.html |
|
The build 224741 found UI Test snapshots differences: Details
|
|
|
|
Tick the box to add this pull request to the merge queue (same as
|
GitHub Issue: #8339
PR Type:
💬 Other... Breaking change (API alignment with WinUI)
What changed? 🚀
Removes the Uno-only feature flag
FeatureConfiguration.Control.UseLegacyContentAlignment(BC45 of the Phase 5 breaking-changes wave) and hard-codes the WinUI-correct Center/Center default forControl.HorizontalContentAlignment/VerticalContentAlignment.The flag was an opt-in that flipped those defaults back to the legacy Left/Top. It defaulted to
false, so the effective default was already Center/Center — removing it is source-breaking only: default users see no runtime change; only apps that explicitly setUseLegacyContentAlignment = trueare affected.DependencyPropertyMixinGenerator): theHorizontalContentAlignment/VerticalContentAlignmentDP defaults now emitHorizontalAlignment.Center/VerticalAlignment.Centerdirectly, dropping the ternary that read the flag.FeatureConfiguration: the now-empty nestedControlholder is deleted (its only remaining member was this flag; the siblingUseLegacyLazyApplyTemplatewas removed by an earlier item).PackageDiffIgnore.xml(6.6baseline): entries for the removedControlholder and the flag's property / getter / setter, mirroring the siblingUseLegacyLazyApplyTemplateremoval.migrating-to-uno-7.mdfor apps that set the flag.Validation
SamplesApp.Skia.Generic(net10.0 Skia) builds clean (0 warnings / 0 errors). This is the real proof the removal is consistent — a stale generator would leave a dangling reference to the deleted flag and fail the build.Given_ContentControl.When_Default_ContentAlignment_Is_Center— 1/1 pass. Constructs a fresh unstyledContentControland assertsHorizontalContentAlignmentandVerticalContentAlignmentareCenter. This is a forward regression guard (Center/Center was already the default), not a fails-before test — a genuine fails-before test is structurally impossible here since the flag defaulted tofalseand nothing set ittrue.PackageDiffIgnoreAPI-diff surprises expected beyond the four flag entries above.Breaking change
FeatureConfiguration.Control.UseLegacyContentAlignmentis removed with no[Obsolete]shim (per the 7.0 hard-remove policy).Impact: a compile error for any code referencing the flag. No runtime behaviour change for default users — the default was already Center/Center.
Migration: apps that set
UseLegacyContentAlignment = trueto keep the legacy Left/Top default should instead setHorizontalContentAlignment/VerticalContentAlignmentexplicitly (via aStyleor per control). Seemigrating-to-uno-7.md.🤖 Generated with Claude Code