Repository navigation
Closed
Labels
Description
What would you like to be added? π‘
Sync the Uno port of Button controls with WinUI 2.6.5.
Upstream range: 7198c4e690 β c29edd64ae (winui3/release/2.6.5) Β· compare
Port build: passed Β· Skipped items: 0
Sync to WinUI 2.6.5 (7198c4e690 β c29edd64ae)
Upstream changes
- RadioButton_Partial.cpp/.h:
OnGroupNamePropertyChangednow callsUpdateRadioButtonGroup(). - RadioButton_Partial.cpp/.h: new
EnterImploverride that callsUpdateRadioButtonGroup()when entering live. - RadioButton_Partial.cpp:
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. - RadioButton_Partial.cpp/.h:
GetParentForGroupnow walks the core visual tree and returns aCDependencyObject.FocusNextElementInGroupwas adapted to match. - RadioButton_Partial.cpp:
SetFocusedElementresult is checked withIFC_RETURN. - Annotation-only changes (
_In_onEnterImpl/LeaveImplparams,MeasureOverride_In_removal,final->overrideonButtonBase::EnterImpl, trailing newline): Button.cpp, Button.h, ButtonBase_Partial.h, HyperLinkButton_Partial.cpp/.h, RadioButtonUnregisterFromGroup. - No changes: ButtonBaseKeyProcess.h, Button_Partial., all other AutomationPeer files, ButtonBase_Partial.cpp, CheckBox, RepeatButton*, ToggleButton*.
Ported
- RadioButton_Partial.cpp (
OnGroupNamePropertyChanged) ->RadioButton.mux.cs: addedUpdateRadioButtonGroup()call. - RadioButton_Partial.cpp/.h (
EnterImpl) ->RadioButton.mux.cs: added aprivate protected override void EnterImpl(bool live)that callsUpdateRadioButtonGroup()when live. - RadioButton_Partial.cpp (
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
- Button.cpp / Button.h
_In_SAL annotations: C++ annotations only. - ButtonBase_Partial.h
final->override: C++ virtual specifier, nothing to port. - HyperLinkButton
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.- DXaml peer creation block in
UpdateRadioButtonGroup: Uno has no separate peer for the core object. IFC_RETURN(result.GetHResult())afterSetFocusedElement: HRESULT plumbing.
Skipped
- None
Why is this needed? π€
Keeps Button controls aligned with the latest stable WinUI release.
For which platforms π±π»π₯οΈ
All
Anything else we need to know? π¬
Generated by the WinUI port sync workflow. This issue stays open while anything is listed as skipped or the port build is failing.
Activity