Repository navigation
Conversation
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23745/wasm-skia-net9/index.html |
|
The build 222106 found UI Test snapshots differences: Details
|
|
@Xiaoy312 CI has some issue, but otherwise good to go |
014a9a0 to
c673643
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23745/wasm-skia-net9/index.html |
|
The build 222661 found UI Test snapshots differences: Details
|
WindowActivatedEventArgs.WindowActivationState was typed as the Uno-only Windows.UI.Core.CoreWindowActivationState. WinUI types it as Microsoft.UI.Xaml.WindowActivationState. Retype the property and internal ctor to the WinUI enum (values are identical: CodeActivated/Deactivated/ PointerActivated = 0/1/2). - Hand-write Microsoft.UI.Xaml.WindowActivationState cross-platform (was a Skia/Reference-only generated stub, which cannot back a cross-platform property); disable the generated stub like ElementTheme/FocusState. - Internal/native plumbing stays on CoreWindowActivationState; cast to the public enum at the args boundary. - Update consumers (WindowChrome, DatePicker, MacOSWindowHost, ALC tests, sample) and drop the SymbolMatchingHelpers parity shim so the WinUI-parity check now validates the real shape. - PackageDiffIgnore (6.5) entry for the retyped getter. BC13 of the 7.0 breaking-changes rollup (#8339). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
c673643 to
7d803ee
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23745/wasm-skia-net9/index.html |
|
The build 222733 found UI Test snapshots differences: Details
|
|
|
GitHub Issue: #8339
PR Type:
💬 Other... Breaking change (API alignment with WinUI)
What changed? 🚀
Microsoft.UI.Xaml.WindowActivatedEventArgs.WindowActivationStatewas typed as the Uno-onlyWindows.UI.Core.CoreWindowActivationState. WinUI types it asMicrosoft.UI.Xaml.WindowActivationState. This PR (BC13 of the Phase 5 breaking-changes wave) retypes the property (and the internal constructor) to the WinUI enum.The two enums are value-identical (
CodeActivated=0,Deactivated=1,PointerActivated=2), so no runtime behaviour changes — only the public type.Details:
Microsoft.UI.Xaml.WindowActivationState(src/Uno.UI/UI/Xaml/Window/WindowActivationState.cs), available on all platforms. The previous definition was a generated stub gated to__SKIA__ || __NETSTD_REFERENCE__only, so it couldn't back a cross-platform property. Following the "move out ofGenerated/" convention, the enum is now hand-written; the generated stub is set to the disabled#if falseform the sync generator emits for hand-written enums (mirrorsElementTheme/FocusState).WindowActivatedEventArgs— property + internal ctor retyped.BaseWindowImplementation,Window.alc.cs) — the internal/native plumbing stays onCoreWindowActivationState; the value is cast toWindowActivationStateat the public-args boundary (value-preserving).WindowChrome,DatePicker(Uno-specific activation hook),MacOSWindowHost, theGiven_AlcContentHostALC tests, and theWindowActivationTestssample updated to the new type / value-preserving cast.SymbolMatchingHelpersspecial-case that forced the WinUI-parity check to pass for this property (// TODO: Match API with WinUI) is deleted; the check now validates the real (matching) shape.Validation:
SamplesApp.Skia.Generic(net10.0 Skia) builds clean, transitively compilingUno.UI,Uno.UI.RuntimeTests, samples, and the Skia runtimes (incl.Uno.UI.Runtime.Skia.MacOS). Reference build validated separately (the API-contract compilation). Native heads are safe by construction — the enum is now defined unconditionally, so no native head loses the type. (Native Android/iOS not built locally; stated, not implied.)Given_AlcContentHostactivation tests pass — they raiseWindow.Activated, readargs.WindowActivationState, and assertCodeActivated, exercising the producer cast end-to-end. Value-identical retype ⇒ pass-after regression guards.Uno.WinAppSDKSyncGeneratorproject targets .NET 11 (SDK not available locally); the shim removal is a mechanical block deletion — CI's parity gate validates it.PackageDiffIgnore.xml(6.5 baseline) gets one entry for the retyped getter (get_WindowActivationState()return type changed ⇒ old signature reads as removed).PR Checklist ✅
Given_AlcContentHostactivation tests exercise the path and were run as regression guards.Screenshots Compare Test Runresults — N/A (no visual change).Breaking change — impact & migration path
WindowActivatedEventArgs.WindowActivationStatenow returnsMicrosoft.UI.Xaml.WindowActivationStateinstead ofWindows.UI.Core.CoreWindowActivationState. Code that assigned it to aCoreWindowActivationStatevariable or compared againstCoreWindowActivationState.*members no longer compiles.Microsoft.UI.Xaml.WindowActivationStateand itsCodeActivated/Deactivated/PointerActivatedmembers. The enum values are unchanged, so a value-preserving cast ((CoreWindowActivationState)args.WindowActivationState) bridges any code that must stay on the legacy type. This matches WinUI.