Skip to content

chore(winui-sync): Track Button controls - #26467

Merged
MartinZikmund merged 1 commit into
masterfrom
dev/mazi/winui-sync-buttons
Nov 14, 2026
Merged

MartinZikmund merged 1 commit into
masterfrom
dev/mazi/winui-sync-buttons

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: closes #26466

PR Type:

  • 🤖 Project automation

What changed? 🚀

Adds one area, buttons, to build/winui-sync/areas.json so the weekly WinUI Port Sync tracks the ButtonBase family: ButtonBase, Button, ToggleButton, CheckBox, RadioButton, HyperlinkButton, RepeatButton and their automation peers.

Stacked on #26463 (file-level area paths), which this needs: the upstream code is 31 individual files in dxaml/xcp/dxaml/lib, dxaml/xcp/core and KeyDownUp/inc. Only the last commit belongs to this PR.

Mapping

  • Upstream: the *_Partial.cpp/.h and *AutomationPeer_Partial.cpp/.h pairs of the seven controls, plus Button.cpp, Button.h and ButtonBaseKeyProcess.h.
  • Uno: Controls/Button, Controls/Primitives/ButtonBase, Controls/Primitives/RepeatButton, the two ToggleButton files in Controls/Primitives, and the seven automation peers.
  • No tests and no strings are mapped: these upstream files have no test or Strings folder of their own.
  • Not included: AppBarButton and AppBarToggleButton (they belong with the CommandBar port) and the MUX controls RadioButtons, DropDownButton, SplitButton and ToggleSplitButton (each has its own controls/dev folder).

Baseline: WinUI 1.4.2 (7198c4e690, 2023-10-24)

  • Headers name 1.8.4 (6 files), 1.5.4 (1) and 1.4.2 (1 by the seed script, 3 counting the two whose tag sits on the line after // MUX Reference). 1.4.2 is the oldest.
  • The listed upstream files are byte-identical from 1.8.4 to 2.6.5. All change is between 1.5.4 and 1.8.4.
  • Six ported files record no tag: CheckBox.mux.cs, RadioButton.mux.cs, HyperlinkButton.mux.cs, RepeatButton.mux.cs, ButtonBaseKeyProcess.cs and RadioButtonAutomationPeer.cs. RadioButton.mux.cs matches the older upstream: it lacks EnterImpl and the reworked UpdateRadioButtonGroup. So the older baseline is the correct one, not just the cautious one.

What the first sync will see (against winui3/release/2.6.5): 7 files changed, 104 insertions and 45 deletions. RadioButton_Partial.cpp/.h is the real change (88+/36- and 8+/1-); the rest are SAL annotation edits in Button.cpp, Button.h, ButtonBase_Partial.h and HyperLinkButton_Partial.cpp/.h.

PR Checklist ✅

Other information ℹ️

  • Runtime (tooling, local): seed-area.ps1 and detect.ps1 -AreaFilter buttons ran against a full WinUI clone; 106 Pester tests pass.
  • Not verified: a workflow run for this area. That needs both PRs on master.
  • Merge feat(winui-sync): Allow file-level area paths #26463 first. This PR targets its branch, so it gets no CI until it is retargeted to master.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw

Copilot AI balanced review requested due to automatic review settings November 14, 2026 07:11
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Nov 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 23s —— View job


Review: chore(winui-sync): Track Button controls

Verdict: ship. 0 inline issues (0 blocking, 0 minor).

  • The change adds one buttons entry to build/winui-sync/areas.json, and the JSON is well-formed.
  • I checked that the Uno-side paths exist:
    • Controls/Button (this folder holds CheckBox.mux.cs, RadioButton.mux.cs and HyperlinkButton.mux.cs).
    • Controls/Primitives/ButtonBase (this folder holds ButtonBaseKeyProcess.cs).
    • Controls/Primitives/RepeatButton.
    • ToggleButton.cs and ToggleButton.mux.cs.
    • All 7 automation peers.
    • The Generated/ copy of ButtonBaseAutomationPeer is correctly not mapped.
  • I did not check the upstream WinUI paths or the baseline SHA, because there is no WinUI clone here. The PR description says seed-area.ps1 and detect.ps1 ran against one.
  • The baseline choice (1.4.2, the oldest tag named in the headers) is well argued. RadioButton.mux.cs lacks EnterImpl, which fits the older upstream.
  • The title and commit message follow Conventional Commits. The PR links an issue.
  • One process point: this PR is stacked on feat(winui-sync): Allow file-level area paths #26463 and gets no CI until it is retargeted to master. A workflow run for this area is still unverified, as the description says. Merge feat(winui-sync): Allow file-level area paths #26463 first.

@mergify

mergify Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

Base automatically changed from dev/mazi/winui-sync-file-paths to master November 14, 2026 07:23
Adds the ButtonBase family (ButtonBase, Button, ToggleButton, CheckBox, RadioButton, HyperlinkButton, RepeatButton and their automation peers) as one file-level area.

Baseline is WinUI 1.4.2, the oldest tag the MUX Reference headers name. The listed upstream files are identical from 1.8.4 to 2.6.5; the 1.4.2 to 1.8.4 range holds a RadioButton group update on EnterImpl that the Uno port does not have.

Closes #26466

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-buttons branch from 1228efb to 08aa8dc Compare November 14, 2026 07:23
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 17s —— View job


Review: chore(winui-sync): Track Button controls

Verdict: ship. 0 inline issues (0 blocking, 0 minor).

  • The diff adds one buttons entry to build/winui-sync/areas.json. I checked it by reading the diff and the file's structure.
  • I confirmed these Uno-side paths exist: the two ToggleButton files, and six of the seven automation peers (Button, ButtonBase, Toggle, Hyperlink, Radio, Repeat). I did not check that CheckBoxAutomationPeer.cs or the three folder paths exist (Controls/Button, Primitives/ButtonBase, Primitives/RepeatButton). The earlier review in this PR reported them as present.
  • I did not check the upstream WinUI paths or the baseline SHA, because there is no WinUI clone in this environment. The PR description says seed-area.ps1 and detect.ps1 ran against one.
  • The title follows Conventional Commits and the PR links an issue.
  • This PR is stacked on feat(winui-sync): Allow file-level area paths #26463, so it gets no CI until it is retargeted to master. A workflow run for this area is unverified, as the description says. Merge feat(winui-sync): Allow file-level area paths #26463 first.

@MartinZikmund
MartinZikmund merged commit 3f46ec9 into master Nov 14, 2026
16 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/winui-sync-buttons branch November 14, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WinUI Port Sync: track the ButtonBase family

2 participants