Repository navigation
chore(winui-sync): Onboard SplitButton at WinUI 2.6.5 - #26476
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Claude finished @MartinZikmund's task in 19s —— View job Review summaryVerdict: ship, with minor nits. I reviewed by reading the diff only. I did not build or run any tests, so the runtime results in the PR description are unverified by me. Issues: 0 high, 0 medium, 2 low (one inline comment each).
Cross-cutting notes
|
|
This pull request is merged. |
172881b to
f847d4e
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Claude finished @MartinZikmund's task in 14s —— View job Review summaryVerdict: ship. I read the diff only. I did not build or run any tests, so the runtime results in the PR description are unverified by me. Issues: 0 high, 0 medium, 1 low. I posted no new inline comments. Cross-cutting notes
|
f847d4e to
98076eb
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Claude finished @MartinZikmund's task in 15s —— View job Review summaryVerdict: ship, with one low-severity open item. I read the diff only ( Issues: 0 high, 0 medium, 1 low. I posted no new inline comments because the earlier review already covers the one inline finding. Open item (low)
Cross-cutting notes
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-26476/docs/index.html |
|
The build 246535 found UI Test snapshots differences: Details
|
Reviewed against WinUI 2.6.5 line by line. The 1.4.2 to 2.6.5 upstream changes (no span on touch, split border template, pressed border brush, padding resource) were already in the port, so this aligns the rest: - SplitButtonTestApi.SimulateTouch is a static property, as in upstream - IsCheckedChanged was wrongly marked Uno-only; it is upstream API - Flyout's LogicalChild registration now says why it is there - headers name 2.6.5, the version the port was reviewed against Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
- SplitButton no longer re-applies its template on Loaded and unregisters on Unloaded. The leak test (Given_FrameworkElement_And_Leak, SplitButton row) collects the control without it, and the SplitButton tests pass. - ToggleSplitButton drops a duplicate using and its pragma, left over from the removed WinUI replace pass. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
ToggleTest clicks the primary button again and checks the click handler's state, as upstream does; the earlier note that Uno has no reason to raise Click was wrong. The test page uses SplitButtonTestApi like upstream, and the headers name the upstream .cs files at 2.6.5. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
Recorded at WinUI 2.6.5 (c29edd64ae), the release the port was caught up to and reviewed against in this branch. The theme XAML was added by the seed's detection. Detection reports the area up to date. Closes #26475 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
Now that the area is tracked at 2.6.5, its MUX Reference headers name only the upstream file. 14 files. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
98076eb to
c6d4181
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Claude finished @MartinZikmund's task in 18s —— View job Review summaryVerdict: ship, with one low-severity open item. I read the diff only ( Issues: 0 high, 0 medium, 1 low. I posted no new inline comments because the earlier review already covers it. Open item (low)
Reply to @morning4coffe-dev's question on removed comments
Cross-cutting notes
|
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 246729 found UI Test snapshots differences: Details
|
GitHub Issue: closes #26475
PR Type:
What changed? 🚀
Onboards
SplitButton/ToggleSplitButtonto theWinUI Port Sync, recorded at WinUI 2.6.5. This is the first run of the catch-up onboarding from #26474: the port was caught up to the latest stable release, reviewed line by line against it, and its Uno workarounds were audited before the area was added.Starting point
Headers named WinUI 1.4.2 (7 files), 1.8.4 (2, the automation peers) and 2.5.1 (2, the theme XAML from the Generic.xaml refresh). Per the onboarding rules ("mixed, close together") the catch-up started at 1.4.2.
Upstream changes 1.4.2 → 2.6.5 (5 files, +48/−21)
SplitButton.cpp: touch no longer switches toSecondaryButtonSpan, only key-down doesInteractionTests:TouchTestnow expects a primary click under touch, then opens the flyout from the secondary partSplitButton.xaml:SplitButtonPadding, border split intoPrimaryButtonBorder/SecondaryButtonBorderSplitButton_themeresources.xaml: pressed border brush,SplitButtonPadding,MinHeighton the CommandBar styleTouchTest[TestProperty("TestPass:MaxOSVer")]SplitButton.vcxitemsPerf2026 page entriesNothing skipped, so no skipped-items issue.
Line-by-line review against 2.6.5
SplitButton.cpp/.hSplitButton.csSplitButton.idl,Generated/SplitButton.properties.cppSplitButton.properties.csFlyout'sLogicalChildregistration was an unmarked Uno difference → now marked (see audit)ToggleSplitButton.cpp/.h,Generated/ToggleSplitButton.properties.cppToggleSplitButton.cs,ToggleSplitButton.properties.csIsCheckedChangedwas wrongly marked "Uno specific: not present in the C++ source"; it is upstream API (.idl+ generatedm_isCheckedChangedEventSource) → markers removed. Upstream.hdeclaresOnApplyTemplate()with no definition → nothing to portSplitButtonAutomationPeer.cpp,ToggleSplitButtonAutomationPeer.cpp,.idl#if HAS_UNOmember → auditSplitButtonEventArgs.hSplitButtonEventArgs.csSplitButtonTestApi.cpp/.idlSplitButtonTestApi.csSimulateTouchproperty, Uno had instance methodsSplitButtonTestHelper.cpp/.hSplitButtonTestHelper.csSplitButton.xaml,SplitButton_themeresources.xamlAPITests/SplitButtonTests.csSplitButtonTests_APITests.mux.csRunOnUIThreadreplacesIdleSynchronizer.Wait); header named.cpp→ fixedInteractionTests/SplitButtonTests.csSplitButtonTests_InteractionTests.mux.csToggleTestrestored (see audit)TestUI/SplitButtonPage.xaml.csSplitButtonPage.mux.xaml.csSplitButtonTestApilike upstream; header addedEvery reviewed file's header was first brought to
winui3/release/2.6.5(the seed then derived 2.6.5 from the headers themselves), and once the entry was written, the versions were dropped: tracked areas' headers name only the upstream file, sinceareas.jsonrecords the version (#26474).Workaround audit
SplitButtonctorOnApplyTemplateonLoaded, unregistered all events onUnloaded("prevent leaks")Given_FrameworkElement_And_Leak.When_Add_Remove(SplitButton, 15)passes without it; all SplitButton tests passToggleSplitButton.csusing+#pragma warning disable 105"for the WinUI replace pass"SplitButton.FlyoutFrameworkPropertyMetadataOptions.LogicalChildSetParent, giving the flyout the owner's DataContext and resources, the same asButton.FlyoutRegisterFlyoutEventsflyoutcaptureSplitButtonAutomationPeer.GetChildrenCore(#if HAS_UNO)GetPopupAssociatedAutomationPeer); nothing exposes anchor → popup generallyToggleTestToggleStateOnClickcheck ("Uno TODO: no reason for it")AccessibilityTestpeer.GetChildren()includes the raw template buttons on WinUI too, so it is not a faithful substituteBasicInteractionTestFlyout.IsOpeninstead of findingTestFlyoutvia UIA#if !HAS_INPUT_INJECTOR [Ignore](5 tests),KeyboardTest#if !__SKIA__HAS_INPUT_INJECTORis undefined for WinAppSDK (only Skia/WASM/UWP define it)TouchTestStartBringIntoView()Tests
SplitButtonTestsAPI (2) + interaction (7) andWhen_Add_Remove(SplitButton, 15).Uno.UI.RuntimeTests.Genericwith analyzers on (noUnoFastDevBuild), 0 errors.seed-area.ps1with-Baseline <2.6.5>added the theme XAML on its own;detect.ps1 -AreaFilter splitbuttonreports up to date; 118 Pester tests pass.SplitButtonruntime tests outside the mapped folder.Other
SplitButton.cs(WASM accessibility); whichever merges second needs a trivial rebase.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw