Repository navigation
fix(buttons): Sync Button controls with WinUI 2.6.5 - #26470
Conversation
|
|
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-26470/docs/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 246500 found UI Test snapshots differences: Details
|
Adds the button controls' styles to the area: the upstream CommonStyles files (Button, CheckBox, HyperlinkButton, RadioButton, RepeatButton, ToggleButton _themeresources.xaml) and their FluentTheme copies. Until now the area tracked no style changes at all. All six copies match WinUI 2.6.5 apart from their headers (compared ignoring whitespace), so their headers now name 2.6.5 and detection reports the area up to date at its 2.6.5 baseline. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
The area is tracked, so its MUX Reference headers name only the upstream file; the area's baseline records the version. 16 files, 17 header lines. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
|
The build 246534 found UI Test snapshots differences: Details
|
Moves the branch's baseline into build/winui-sync/areas/buttons.json, which replaced areas.json on master (#26653). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzaC5dx4oo2ZVG5BHB
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
This pull request is merged. |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
GetParentForGroup used the VisualTree's RootVisual for named groups, which is null for content hosted in a XAML island (desktop windows). The 2.6.5 sync made UpdateRadioButtonGroup return early on a null parent, so checking a button no longer unchecked the others in its named group. Port CDependencyObject::GetTreeRoot(publicParentOnly: true), as upstream GetParentForGroup uses, instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtzaC5dx4oo2ZVG5BHB
|
Pushed 9cdf87e to fix a regression in this sync, which made Cause. Fix. Port Validation. Locally on Skia desktop with retries off, the two tests fail on the branch before the fix and pass after it. All 37 tests in |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 248370 found UI Test snapshots differences: Details
|
GitHub Issue: closes #26469
PR Type:
💬 Other: automated sync of ported WinUI code
What changed? 🚀
Ports the upstream changes to Button controls up to WinUI
2.6.5and moves its sync baseline.Sync to WinUI 2.6.5 (
7198c4e690→c29edd64ae)Upstream changes
OnGroupNamePropertyChangednow callsUpdateRadioButtonGroup().EnterImploverride that callsUpdateRadioButtonGroup()when entering live.UpdateRadioButtonGroupreturns early if the button is unchecked or has no group parent. It also computes the parent once up front and makes sure the parent's DXaml peer exists.GetParentForGroupnow walks the core visual tree and returns aCDependencyObject.FocusNextElementInGroupwas adapted to match.SetFocusedElementresult is checked withIFC_RETURN._In_onEnterImpl/LeaveImplparams,MeasureOverride_In_removal,final->overrideonButtonBase::EnterImpl, trailing newline): Button.cpp, Button.h, ButtonBase_Partial.h, HyperLinkButton_Partial.cpp/.h, RadioButtonUnregisterFromGroup.Ported
OnGroupNamePropertyChanged) ->RadioButton.mux.cs: addedUpdateRadioButtonGroup()call.EnterImpl) ->RadioButton.mux.cs: added aprivate protected override void EnterImpl(bool live)that callsUpdateRadioButtonGroup()when live.UpdateRadioButtonGroup) ->RadioButton.mux.cs: early return when unchecked, early return when there is no parent, parent computed once up front.RadioButton.mux.cshad no MUX header, so I added one with tag winui3/release/2.6.5.Not applicable
_In_SAL annotations: C++ annotations only.final->override: C++ virtual specifier, nothing to port.MeasureOverride_In_removal and trailing newline: C++ annotation/whitespace.UnregisterFromGroup_In_annotation: C++ annotation.GetParentForGroupcore-side visual-relative walk: the Uno version already usesParent/VisualTree.GetRootForElement, which has no peer-resurrection problem.UpdateRadioButtonGroup: Uno has no separate peer for the core object.IFC_RETURN(result.GetHResult())afterSetFocusedElement: HRESULT plumbing.Skipped
PR Checklist ✅
Screenshots Compare Test Runresults.