Repository navigation
Conversation
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23741/wasm-skia-net9/index.html |
|
The build 222086 found UI Test snapshots differences: Details
|
|
|
TimePickerFlyoutPresenter derived from FlyoutPresenter in Uno, but WinUI derives it directly from Control -- like its sibling DatePickerFlyoutPresenter, which already ships as : Control. Reparent to Control to match WinUI and align the two picker presenters. The new modifier on IsDefaultShadowEnabled / IsDefaultShadowEnabledProperty existed only to shadow FlyoutPresenter's members; with a Control base they are ordinary declarations, matching WinUI's own surface. BC73 of the 7.0 breaking-changes rollup (#8339). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
66af065 to
ac8a4e5
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23741/wasm-skia-net9/index.html |
|
The build 222659 found UI Test snapshots differences: Details
|
GitHub Issue: #8339
PR Type:
💬 Other... Breaking change (API alignment with WinUI)
What changed? 🚀
TimePickerFlyoutPresenterderived fromFlyoutPresenterin Uno, but in WinUI it derives directly fromControl— exactly like its siblingDatePickerFlyoutPresenter(which already ships as: Controlin Uno). This PR (BC73 of the Phase 5 breaking-changes wave) reparentsTimePickerFlyoutPresentertoControlto match WinUI and bring the two picker presenters into line.Changes:
TimePickerFlyoutPresenter : FlyoutPresenter→: Control.newmodifier fromIsDefaultShadowEnabledandIsDefaultShadowEnabledProperty. Those members were only markednewbecause they shadowedFlyoutPresenter.IsDefaultShadowEnabled; once the base isControl(which has no such member) they are ordinary declarations — matching WinUI, whereTimePickerFlyoutPresenterdeclares its ownIsDefaultShadowEnabled.Nothing else was touched: the presenter already builds its visual tree from named template parts (it never used
ContentControl.Contentor anyFlyoutPresenter-specific member), its default styles (Fluent v2/v1, Compact density, Generic) set onlyControl/FrameworkElementproperties and carry noBasedOnon aFlyoutPresenterstyle, and it is created internally byTimePickerFlyout(typed asTimePickerFlyoutPresenter, notFlyoutPresenter).Validation:
SamplesApp.Skia.Generic(net10.0 Skia) builds clean, transitively compilingUno.UI,Uno.UI.RuntimeTests, and all consuming samples.Given_TimePickerflyout tests pass —When_12HourClock_Should_Display_12_Instead_Of_0,When_MinuteIncrement_In_Range_Should_Be_Set_Properly,When_MonochromaticOverlayPresenter_Workaround,When_PM_Opened_And_Closed,When_TimePickerFlyout_Placed_Outside_Window— each opens the flyout, instantiates and templates the presenter, and reads its state (the run log shows theTimePickerFlyoutPresenterand its automation peer being created).When_Time_Uninitialized_Should_Display_Current_Timeis#if __IOS__ || __ANDROID__and correctly did not run on Skia. Behaviour is unchanged (the shadow still applies via the presenter's ownIsDefaultShadowEnabled), so these are pass-after regression guards.Generic.xaml,Generic.Native.xaml,SystemResources.xaml,mergedstyles.xaml) was checked — none carry aBasedOnon aFlyoutPresenter-targeted style, so no native style-apply regression from the base-class change.No
PackageDiffIgnore.xmlentry is required — the package-diff gate tracks declared members only and does not track base-type changes; no declared member is removed here (dropping thenewkeyword does not change the emitted metadata, andIsDefaultShadowEnabled/IsDefaultShadowEnabledPropertyremain declared on the type).PR Checklist ✅
Given_TimePickertests exercise the flyout open/template/display path and were run as regression guards.Screenshots Compare Test Runresults — no intended visual change (the TimePicker flyout renders identically).Breaking change — impact & migration path
TimePickerFlyoutPresenteras aFlyoutPresenter/ContentControl— assigning an instance to aFlyoutPresenter/ContentControlvariable, or accessing inherited members such asContent/ContentTemplateorFlyoutPresenter-specific API through it — no longer compiles. This is the same shapeDatePickerFlyoutPresenteralready has.TimePickerFlyoutPresenter(orControl) directly. Style it viaTimePickerFlyout.TimePickerFlyoutPresenterStyleas before; the default templates are unchanged.