Repository navigation
refactor!: Remove Setter pipeline legacy/shim code (BC37, BC44, BC63) - #23595
Conversation
917ebd9 to
338184a
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23595/wasm-skia-net9/index.html |
|
The build 220145 did not find any UI Test snapshots differences. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23595/wasm-skia-net9/index.html |
|
The build 220180 did not find any UI Test snapshots differences. |
|
|
f61fa77 to
a49b332
Compare
a49b332 to
7044519
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23595/wasm-skia-net9/index.html |
|
The build 220868 did not find any UI Test snapshots differences. |
7044519 to
45e128e
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23595/wasm-skia-net9/index.html |
|
The build 220956 did not find any UI Test snapshots differences. |
45e128e to
54b12a5
Compare
Drop the XAML source-generator fallback that emitted a `Setter<T>` for Style `<Setter Property="X">` entries targeting a plain CLR (non-DP) property. Such setters now resolve through the normal path and fail generation with a clear "X is not a DependencyProperty" error, matching WinUI which never allowed non-DP setter targets. Convert ComboBox.IsPopupFullscreen (the one in-repo consumer of the fallback, via an iOS sample style) to a generated DependencyProperty so the setter remains valid on every target. Part of breaking-changes Phase 3 (#8339). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Remove the public Uno-only generic `Microsoft.UI.Xaml.Setter<T>` and its `ICSharpPropertySetter` marker interface, neither of which exist in WinUI. With its only XAML producer gone (BC37), the type has no remaining users. Cascade enabled by the removal: - drop the `ICSharpPropertySetter` branch in `Style.EnumerateSetters`; - drop the now-pointless `DependencyObject` parameter from `SetterBase.TryGetSetterValue` / `Setter.TryGetSetterValue` / `Style.TryGetPropertyValue` and its two `.mux.cs` callers. Migrate the C# callers (unit tests, Pivot docs) to `new Setter(DP, value)`. The ItemsControl container-style tests previously relied on `Setter<T>`'s type-guarded no-op behaviour on their ContentPresenter containers; their `BuildBasicContainerStyle` is now an empty style (a real `Control.Template` setter is invalid there), preserving the asserted behaviour. Register the public type removal in build/PackageDiffIgnore.xml. Part of breaking-changes Phase 3 (#8339). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Remove the `[EditorBrowsable(Never)]` `SetterBase.set_Property(string)` binary-compat shim and the now-orphaned `OnStringPropertyChanged` virtual it delegated to. Both existed solely for the removed `Setter<T>` (BC44), so with that type gone they have no remaining purpose or source callers. Register the public method removal in build/PackageDiffIgnore.xml. Part of breaking-changes Phase 3 (#8339). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1b19308 to
8143a8e
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23595/wasm-skia-net9/index.html |
|
The build 221155 found UI Test snapshots differences: Details
|
GitHub Issue: https://github.com/unoplatform/uno-private/issues/2125
PR Type:
✨ Feature
What changed? 🚀
Implements the Setter-pipeline trio from breaking-changes Phase 3 (#8339), landed adjacently in the required order BC37 → BC44 → BC63. On default settings runtime behavior is unchanged — these remove Uno-only scaffolding (a legacy codegen fallback, a non-WinUI generic type, and the binary-compat shim it forced) with no WinUI counterpart.
Settercodegen fallback. Drops the XAML source-generator branch that emitted aSetter<T>for Style<Setter Property="X">entries targeting a plain CLR (non-DependencyProperty) property. Such setters now flow through the normal path and fail generation with a clear "X is not a DependencyProperty" error, matching WinUI which never allowed non-DP setter targets. The one in-repo consumer —ComboBox.IsPopupFullscreen(used by an iOS sample style) — is converted to a generatedDependencyPropertyso the setter stays valid on every target.Setter<T>. Deletes the public Uno-only genericMicrosoft.UI.Xaml.Setter<T>and itsICSharpPropertySettermarker interface (neither exist in WinUI). Cascade enabled by the removal: drops theICSharpPropertySetterbranch inStyle.EnumerateSettersand the now-pointlessDependencyObjectparameter fromSetterBase.TryGetSetterValue/Setter.TryGetSetterValue/Style.TryGetPropertyValue(+ its two.mux.cscallers). C# callers (unit tests, Pivot docs) migrate tonew Setter(DP, value).SetterBase.set_Propertyshim. Removes the[EditorBrowsable(Never)]binary-compat shim and the now-orphanedOnStringPropertyChangedvirtual it delegated to — both existed solely forSetter<T>.Public-API removals (the
Setter<T>type andSetterBase.set_Property) are registered inbuild/PackageDiffIgnore.xml(6.6 set, matching the baseline already used for this branch's breaking-change entries).PR Checklist ✅
Given_ItemsControl,Given_ComboBox) to the non-genericSetter; full Setter/Style/VisualState unit-test slice passes (65 passed / 1 skipped / 0 failed).Screenshots Compare Test Runresults.Breaking changes & migration
<Setter Property="X">whoseXis a plain CLR property (not a DependencyProperty) no longer compiles — it now produces a XAML generation error. Migration: makeXaDependencyProperty.Setter<T>(BC44): the Uno-onlynew Setter<TTarget>("Prop", t => t.Prop = value)code-styling API is removed. Migration: usenew Setter(TTarget.PropProperty, value).SetterBase.set_Property(BC63): removal of anEditorBrowsable(Never)binary-compat shim; no source callers exist (binary-compat break only).Validation evidence
Uno.UI.Skiabuilds clean (0 warnings) after each commit;SamplesApp.Skia.Genericbuilds clean after BC37.Uno.UI-UnitTests-only.slnf).PackageDiffallow-list runs CI-only.