Repository navigation
Conversation
|
Tick the box to add this pull request to the merge queue (same as
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 248832 found UI Test snapshots differences: Details
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 248920 found UI Test snapshots differences: Details
|
7bc1af5 to
4d496cc
Compare
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 249137 found UI Test snapshots differences: Details
|
GitHub Issue: closes #26672
PR Type:
🐞 Bugfix
What changed? 🚀
On the Win32 desktop host, a
LeftCompactNavigationView whoseAdaptiveTriggerswitches it toLeftMinimalshowed an empty compact pane after the window was minimized and restored. The SplitViewPaneClipRectanglekept a staleTranslateX(48 instead of −272). Two gaps from WinUI combine to cause it.Changes
fix(win32): a minimized window keeps itsBounds. Its client area is 0×0, so Uno laid the content out at 0×0 and the adaptive triggers flipped. WinUI keeps the bounds and raises noSizeChangedwhile minimized.fix(vsm):GoToStateto the current state without transitions now re-applies the state's setters and completes its storyboards, stopping ones that never end. This matches WinUI'sSnapToEnd+ReevaluateAppliedPropertySetters. SplitView relies on it to refresh the pane lengths bound in its states.Completedhandler that changes state.ObjectAnimationUsingKeyFrameskey-frame theme resources for their target, asBeginalready does.fix(animation):Storyboard.SkipToFillon a runningObjectAnimationUsingKeyFramesnow ends it the way its frames running out would. It fills or releases its value perFillBehaviorand raisesCompleted. Before, the storyboard never completed.AppBar,AppBarButton,AppBarToggleButtonandContentDialog, which callBegin(); SkipToFill();, now see the same end.Testing
Given_VisualStateManager: bound setter, bound animation, setter/animation precedence, running transition, a handler that changes state, never-ending storyboard.Given_SplitView: 8 rows.Given_AppWindow: bounds while minimized.Given_Storyboard:SkipToFillwith both fill behaviors.Not covered
Completedsynchronously, while WinUI raises it on the next tick.AppWindow.Size,Position, visibility) are tracked in [Win32] Window.Activated reports an activated state while minimized, and visibility ignores minimize/restore #26532.GoToState(…, false)used to do nothing and now does WinUI's work. On desktop that measured about 8 µs for a checked CheckBox and under 1 µs for a Button.PR Checklist ✅
Screenshots Compare Test Runresults.