Repository navigation
Conversation
WinAppSDK sync generator drift detected on
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23740/wasm-skia-net9/index.html |
|
The build 222084 found UI Test snapshots differences: Details
|
2339b88 to
911fa99
Compare
WinAppSDK sync generator drift detected on
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23740/wasm-skia-net9/index.html |
DoubleCollection was a Uno-only subclass of List<double>. WinUI's DoubleCollection implements IList<double> but is not a List<T>. Reshape it to wrap a private List<double> and implement IList<double> directly, mirroring PointCollection (minus change-notification). Both constructors and both implicit operators (string, double[]) are preserved. BC27 of the 7.0 breaking-changes rollup (#8339). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
911fa99 to
1447e37
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23740/wasm-skia-net9/index.html |
|
The build 222683 found UI Test snapshots differences: Details
|
|
|
GitHub Issue: #8339
PR Type:
💬 Other... Breaking change (API alignment with WinUI)
What changed? 🚀
DoubleCollectionwas a Uno-only subclass ofList<double>. WinUI'sDoubleCollectionis a sealed collection that implementsIList<double>(and its bases) but is not aList<T>— it exposes none ofList<double>'s extra surface (AddRange,Sort,Capacity,Reverse,BinarySearch, the non-genericIList/ICollection,IReadOnlyList<double>, …).This PR (BC27 of the Phase 5 breaking-changes wave) reshapes
DoubleCollectionto composition over inheritance: it now wraps a privateList<double>and implementsIList<double>directly, matching WinUI's surface and mirroring the existingPointCollectionpattern (minus change-notification, whichDoubleCollectionnever had).Preserved verbatim:
DoubleCollection()andDoubleCollection(IEnumerable<double>).string("1,2"/ space-separated) and fromdouble[].IList<double>surface used by consumers:Count, indexer,Add,Insert,Remove,RemoveAt,Clear,Contains,IndexOf,CopyTo,IsReadOnly, and bothGetEnumerator()overloads.The only in-repo consumer that reads the collection contents is the Skia shape renderer (
Shape.skia.cs, viaCount+ indexer); it and allStrokeDashArrayusages continue to compile and run unchanged.Validation:
SamplesApp.Skia.Generic(net10.0 Skia) builds clean, transitively compilingUno.UI,Uno.UI.RuntimeTests, and all consuming samples.Given_XamlReader.When_DoubleCollection(exercisesStrokeDashArray="1,2"string→collection population viaXamlReaderandXamlBindingHelper.ConvertValue) plusWhen_ShapeStrokeDashArrayrendering tests pass (Skia Desktop). Because behaviour is unchanged, these are pass-after regression guards, not fails-before repros.No
PackageDiffIgnore.xmlentry is required — the package-diff gate tracks declared members only and does not track base-type changes; the declared-member set here only grows (theIList<double>members are now declared on the type instead of inherited fromList<double>).PR Checklist ✅
Given_XamlReader/When_Shapetests exercise the population and render paths and were run as regression guards.Screenshots Compare Test Runresults — N/A (no visual change).Breaking change — impact & migration path
DoubleCollectionbeing aList<double>no longer compiles — specifically calls toList<double>-only members (AddRange,Sort,Reverse,Capacity,BinarySearch,InsertRange,RemoveAll, …), or code that assigned/passed aDoubleCollectionwhere aList<double>, non-genericIList/ICollection, orIReadOnlyList<double>was expected.IList<double>surface. ReplaceAddRange(items)with a loop ornew DoubleCollection(items); sort/reverse by materializing (col.ToList().Sort()) and rebuilding the collection. This aligns with WinUI, whereDoubleCollectionwas never aList<T>.