Skip to content

chore(winui-sync): Onboard RadioButtons at WinUI 2.6.5 - #26491

Merged
MartinZikmund merged 5 commits into
masterfrom
dev/mazi/winui-sync-radiobuttons
Nov 19, 2026
Merged

MartinZikmund merged 5 commits into
masterfrom
dev/mazi/winui-sync-radiobuttons

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: closes #26490

PR Type:

  • 🤖 Project automation (WinUI port sync onboarding, with port fixes)

What changed? 🚀

Onboards RadioButtons to the WinUI Port Sync, recorded at WinUI 2.6.5. Before the area was added, the port was caught up to the latest stable release, reviewed line by line against it, and its Uno workarounds were audited.

Starting point

Only the automation peer had a MUX Reference header (WinUI 1.8.4). The other 8 files predate the header convention. Upstream controls/dev/RadioButtons is byte-identical from 1.4.1 (the oldest tag with the controls/dev layout) to 2.6.5, apart from RadioButtons.vcxitems, so the catch-up started at 1.4.1 (702b954f) and every gap came from the review.

Upstream changes 1.4.1 → 2.6.5 (1 file, +9)

Change Verdict
RadioButtons.vcxitems: Perf2026 page entries Not applicable (Windows build plumbing)

Nothing skipped, so no skipped-items issue. Upstream has no Strings folder.

Line-by-line review against 2.6.5

Upstream Uno Result
RadioButtons.cpp / .h RadioButtons.cs, RadioButtons.Header.cs Gaps fixed: Left arrow called TryMoveFocus(Right, …) and HandleEdgeCaseFocus(false, …) (a copy of the Right branch), so Left moved focus right in multi-column groups. Template, repeater and items-source handlers are now revoked on re-template instead of stacking. The RS3 check and KeyboardStateTracker are replaced by InputKeyboardSource as upstream. MoveFocus calls UIElement.Focus as upstream. Still differing, marked: Checked/Unchecked handlers are removed directly instead of through the ChildHandlers attached property; the destructor is not ported
RadioButtons.idl, Generated/RadioButtons.properties.cpp RadioButtons.Properties.cs Defaults and callbacks match. Items is now get-only as upstream
ColumnMajorUniformToLargestGridLayout.cpp / .h, .properties.cpp, RadioButtonsPrimitives.idl ColumnMajorUniformToLargestGridLayout(.Properties).cs Gaps fixed: compared against float.Epsilon (1.4e-45) instead of numeric_limits<float>::epsilon() (1.19e-7); m_largestChildSize started at Size.Empty instead of {0,0}; ValidateGreaterThanZero is static and throws ArgumentException (E_INVALIDARG)
RadioButtonsElementFactory.cpp / .h RadioButtonsElementFactory.cs Gaps fixed: DataTemplateSelector was ignored, a DataTemplate was used unwrapped (so its template never reached wrapped items), and unrecognized values reset the wrapper
RadioButtonsAutomationPeer.cpp / .h RadioButtonsAutomationPeer.cs Match
RadioButtonsTestHooks.cpp / .h / .idl RadioButtonsTestHooks.cs Match
RadioButtons.xaml, RadioButtons_themeresources.xaml, RadioButton.xaml FluentTheme copies Byte-identical to 2.6.5, so they are mapped as mirrors (#26484). RadioButton_themeresources.xaml (CommonStyles) belongs to the core RadioButton, so it is left to the buttons area
APITests/RadioButtonsTests.cs RadioButtonsTests.mux.cs (renamed from RadioButtonTests.mux.cs) Both tests ported. VerifyIsEnabledChangeUpdatesVisualState aligned with the 2.6.5 shape
InteractionTests/RadioButtonsTests.cs RadioButtonsInteractionTests.mux.cs (new) Not ported before. All 15 test methods ported, with the test page rebuilt in code. AccessKeys is [Ignore]d (UIElement.AccessKeyInvoked is not implemented, #17130). GamepadCanEscapeAndDoesNotSelectWithFocus is ignored as upstream. RS2MultiColumnKeyboardTest has no [TestMethod] upstream. Note that upstream disables the whole class as unreliable, so these expectations were never checked in WinUI CI

All Uno files now carry a MUX Reference header naming their upstream file.

Workaround audit

Location What it did Verdict Evidence
OnRepeaterElementPrepared Re-checked the container at SelectedIndex (#4689) Removed Passes without it: When_SelectedIndex_Set_Before_Load and the new When_SelectedItem_Set_Before_Load
OnRepeaterUnloaded Stood in for the C++ destructor, detaching the test hooks' layout handler Removed The layout lives in the control's own template, so the handler cannot keep it alive. All Given_FrameworkElement_And_Leak.When_Add_Remove rows pass, including RadioButtons
Items internal setter Unused Removed Upstream is get-only
OnRepeaterElementClearing IsLoaded && IsInLiveTree guard Keeps the selection when containers are cleared on unload Kept, marked ItemsRepeater.OnUnloadedUno still raises a fake Reset on unload. Covered by When_RadioButtons_Unload_SelectedIndex/SelectedItem
#if HAS_UNO Checked/Unchecked handlers Removed directly instead of ChildHandlers revokers Kept, marked No RAII revokers in C#; the upstream form stays under #if !HAS_UNO
HeaderTemplate ValueDoesNotInheritDataContext Uno DataTemplate DP convention Kept Matches the other ported controls' DataTemplate properties

The refactor commit holds the removals on their own.

Tests

  • Runtime (Skia desktop, local, 1 attempt per test): RadioButtonsInteractionTests (16), RadioButtonsTests (2), Given_RadioButtons_UITest (4, 1 new), Given_RadioButton and every Given_FrameworkElement_And_Leak.When_Add_Remove row: 119 passed, 0 failed, 2 skipped (the two ignored tests above).
  • Before the port: MultiColumnKeyboardTest, SingleRowKeyboardTest, DisabledItemsKeyboardTest and DisabledItemsAtTopOfColumnKeyboardTest failed on the first Left press (for example Expected 3, Actual 6). They pass now.
  • WinUI parity: the keyboard tests skip NativeWinUI, because KeyboardHelper is a no-op on WinAppSDK; their expected values come from upstream.
  • Unit tests: Uno.UI.UnitTests has only the 12 known timezone failures (When_Gregorian_FixedDate*).
  • Compile: Uno.UI and Uno.UI.RuntimeTests.Generic with analyzers on (no UnoFastDevBuild), 0 errors. Built at net10.0.
  • Tooling: detect.ps1 -AreaFilter radiobuttons reports up to date, and the 132 Pester tests pass.

No project or MSBuild files changed. The areas.json entry conflicts textually with #26486 (both append an area); whichever merges second needs a trivial rebase.

PR Checklist ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_01TXMNtzW3o9yaCzcTjhsgHm

Copilot AI balanced review requested due to automatic review settings November 15, 2026 07:51
@MartinZikmund MartinZikmund added the area/build Categorizes an issue or PR as relevant to build infrastructure label Nov 15, 2026
@MartinZikmund MartinZikmund self-assigned this Nov 15, 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 15, 2026 •

Copy link
Copy Markdown
Contributor

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


Review summary

Verdict: ship, with minor notes. I read the diff by inspection only. I did not build or run any tests here, so the runtime results in the PR description are unverified by me.

Issues by severity: 0 blocking, 0 major, 3 minor. All 3 are inline comments on skipped tests.

Cross-cutting notes

  • The port fixes in RadioButtons.cs are root-cause fixes. They cover the Left-arrow copy/paste bug, handler revocation on re-template, and the epsilon and Size.Empty initial values. The Left-arrow fix has before/after test evidence.
  • The remaining #if HAS_UNO deviations are marked with Uno specific comments. They match the "Still differing" list in the description.
  • Removing the ItemsRepeater OnElementPrepared is called after NavigationViewItem.OnApplyTemplate #4689 workaround and the unload hook is backed by tests that pass without them. I could not re-run those tests.
  • The new areas.json entry is well-formed. The description notes it will conflict textually with chore(winui-sync): Onboard ProgressRing at WinUI 2.6.5 #26486, so whichever PR merges second needs a rebase.

@mergify

mergify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@morning4coffe-dev morning4coffe-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Compared against RadioButtons.cpp, ColumnMajorUniformToLargestGridLayout.cpp and RadioButtonsElementFactory.cpp at winui3/release/2.6.5. The gaps described in the PR are real and the fixes match upstream:

  • OnChildPreviewKeyDown: Left now calls TryMoveFocus(Left, …) / HandleEdgeCaseFocus(true, …), identical to the C++ (it was a copy of the Right branch).
  • OnApplyTemplate: handlers are now replaced through the SerialDisposable revokers, so re-templating no longer stacks them.
  • Layout: 1.192092896e-07F equals numeric_limits<float>::epsilon(), m_largestChildSize starts at (0, 0), and ValidateGreaterThanZero is static and throws ArgumentException (hresult_invalid_argument). The local function stands in for the lambda correctly.
  • RadioButtonsElementFactory.UserElementFactory / GetElementCore now follow the C++ branch order (DataTemplate, DataTemplateSelector, custom factory) and pass the template down to the RadioButton.

Things to look at:

  1. CI: the new RadioButtonsInteractionTests fail on two platforms. RadioButtonsInteractionTests.BasicKeyboardTest is in the failed list of the iOS Skia runtime tests 3 job, and RadioButtonsInteractionTests.ScrollViewerSettingSelectionDoesNotMoveFocus is in the failed list of the macOS Skia job. Since upstream disables its interaction test class as unreliable, these may need [PlatformCondition] exclusions or a retry-safe form.
  2. Overlap with #26324: both PRs edit RadioButtonsElementFactory.cs, and #26324 changes it to the Microsoft.UI.Xaml.IElementFactory args. Here m_itemTemplateWrapper = (IElementFactoryShim)customElementFactory; will throw InvalidCastException for a custom factory that isn't a shim (upstream assigns it directly), and the file will conflict whichever PR merges second.
  3. OnRepeaterElementPrepared / Clearing: the += / -= pair works because Clearing always precedes recycling, and the #if !HAS_UNO branch keeps the C++ ChildHandlers shape. The IsLoaded && IsInLiveTree guard before Select(-1) exists only because ItemsRepeater.OnUnloadedUno raises a fake Reset, so it may be worth fixing that at the source later.

@MartinZikmund
MartinZikmund enabled stacked auto-merge November 16, 2026 09:33
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-radiobuttons branch from 350d6fe to ed1fb1e Compare November 16, 2026 09:56
Copilot AI balanced review requested due to automatic review settings November 16, 2026 09:56

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 16, 2026 •

Copy link
Copy Markdown
Contributor

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


Review summary

Verdict: fix-first. I reviewed the diff by inspection only. I did not build or run anything, so I have not verified the runtime results in the PR description.

Issues: 1 major, 2 moderate, 1 nit. All four are inline comments.

Cross-cutting notes

  • The port fixes (Left-arrow branch, revoker handling, epsilon and Size.Empty initial values, DataTemplateSelector support) look like correct root-cause fixes. They match the upstream behavior morning4coffe-dev described.
  • Two new interaction tests fail on CI: macOS Skia (ScrollViewerSettingSelectionDoesNotMoveFocus) and iOS Skia (BasicKeyboardTest). These should be resolved or tracked before merge.
  • The earlier review's skipped-test notes still apply. The AccessKeys skip now has a work-item link, so it is tracked.
  • The IsLoaded && IsInLiveTree guard exists only because ItemsRepeater.OnUnloadedUno raises a fake Reset. Fixing that at the source would be a good follow-up.
  • RadioButtonsElementFactory.cs will conflict with fix(itemsrepeater): Accept a custom IElementFactory as ItemTemplate #26324, whichever merges second.

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 17, 2026 •

Copy link
Copy Markdown
Contributor

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


Review summary

Verdict: fix-first. This is a read-only review of the current branch. I did not build or run anything, so the runtime results in the PR description are unverified by me.

Issues: 0 blocking, 1 major (open CI failures), 0 new inline findings. The earlier inline comments still stand, so I did not repeat them.

Resolved since the last review

  • The hard cast (IElementFactoryShim)customElementFactory in RadioButtonsElementFactory.cs is gone. The field is now typed IElementFactory, so custom factories no longer risk an InvalidCastException. The earlier thread can be closed.

Still open

  • Failing CI tests (major): ScrollViewerSettingSelectionDoesNotMoveFocus on macOS Skia and BasicKeyboardTest on iOS Skia were reported failing in the earlier CI runs. I did not see a fix in the four commits. Either root-cause them or add a [PlatformCondition] exclusion with a GitHubWorkItem link, so the skip is tracked.
  • Skipped tests: AccessKeys (now linked to Support for AccessKey #17130) and GamepadCanEscapeAndDoesNotSelectWithFocus (disabled upstream) stay [Ignore]d. The HAS_INPUT_INJECTOR ignore on ScrollViewerSettingSelectionDoesNotMoveFocus means that test is silently skipped on platforms without an input injector. Please confirm it runs on the Skia desktop CI targets.
  • Nit: i.ToString() + "Radio Button" at RadioButtonsInteractionTests.mux.cs:959 can be i + "Radio Button".

Cross-cutting notes

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-radiobuttons branch from c53a54c to 129198f Compare November 18, 2026 06:08
Copilot AI balanced review requested due to automatic review settings November 18, 2026 06:08
@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Nov 18, 2026
@MartinZikmund
MartinZikmund changed the base branch from master to dev/mazi/winui-sync-progressring November 18, 2026 10:31
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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


Review summary

Verdict: fix-first. This is a read-only review by inspection. I did not build or run any tests, so the runtime results in the PR description are unverified by me. The @claude comment had no specific request, so I treated it as a review request and made no code changes. The base ref origin/dev/mazi/winui-sync-progressring was not available in this checkout, so I could not diff against it. I only re-checked the current file.

Issues: 0 blocking, 1 major, 1 nit. The earlier inline threads already cover both, so I added no new inline comments.

Still open

  • Major: CI failures. BasicKeyboardTest on iOS Skia and ScrollViewerSettingSelectionDoesNotMoveFocus on macOS Skia were reported failing in earlier CI runs. I have not seen a root-cause fix or a tracked [PlatformCondition] exclusion for either. I did not check the latest CI run. If they still fail, root-cause them. Otherwise exclude those platforms with a [GitHubWorkItem] link.
  • Nit: RadioButtonsInteractionTests.mux.cs:961 still has i.ToString() + "Radio Button". Use i + "Radio Button".

Cross-cutting notes

  • ScrollViewerSettingSelectionDoesNotMoveFocus is [Ignore]d when HAS_INPUT_INJECTOR is undefined. Please confirm it runs on the Skia desktop CI targets.
  • The IsLoaded && IsInLiveTree guard exists only because ItemsRepeater.OnUnloadedUno raises a fake Reset on unload. Fixing that at the source would be a good follow-up.
  • areas.json will conflict textually with chore(winui-sync): Onboard ProgressRing at WinUI 2.6.5 #26486. Whichever PR merges second needs a trivial rebase.
  • I did not check the screenshot-compare diffs. They span unrelated samples and look like baseline noise.

@MartinZikmund

Copy link
Copy Markdown
Member Author

🤖 Addressed PR comments up to this point

@morning4coffe-dev (review):

  1. CI: both failures are flakes. Each test passed on its leg in builds 246586 and 246700 and failed in later ones. BasicKeyboardTest is excluded on Skia iOS and ScrollViewerSettingSelectionDoesNotMoveFocus on Skia macOS, both tracked by Flaky RadioButtons interaction tests on Skia iOS and macOS #26579 and recorded on [Epic] Flaky tests roundup #9080 (d0ec9bd).
  2. fix(itemsrepeater): Accept a custom IElementFactory as ItemTemplate #26324 overlap: resolved by the rebase. The factory now assigns a custom IElementFactory directly, as upstream does, and adapts IElementFactoryShim through ElementFactoryShimAdapter, so there's no hard cast left.
  3. The IsLoaded && IsInLiveTree guard: agreed that the root cause is ItemsRepeater.OnUnloadedUno raising a fake Reset. That's out of scope for this sync, so the guard stays for now.

@unoplatform unoplatform deleted a comment from nventive-devops Nov 18, 2026
@unoplatform unoplatform deleted a comment from nventive-devops Nov 18, 2026
@unoplatform unoplatform deleted a comment from unodevops Nov 18, 2026
@unoplatform unoplatform deleted a comment from unodevops Nov 18, 2026
@unoplatform unoplatform deleted a comment from unodevops Nov 18, 2026
@unoplatform unoplatform deleted a comment from unodevops Nov 18, 2026
@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 247312 found UI Test snapshots differences: skia-linux-screenshots: 425, skia-windows-screenshots: 492

Details
  • skia-linux-screenshots: 425 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Accessibility_Showcase.png-dark
    • AnimatedVisualsTestbedPage.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • Accessibility_ScreenReader.png
    • Accessibility_ScreenReader.png-dark
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedBackVisualSourceSamplePage.png
    • AppWindowTitleBar Properties.png-dark
    • AppWindowTitleBar Properties.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_StructureAndProps.png
    • AutomationProperties_AutomationId.png
  • skia-windows-screenshots: 492 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AnimatedVisualsTestbedPage.png
    • Basics.png-dark
    • Basics.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • ClipboardTests.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Accessibility_ScreenReader.png-dark
    • AutomationProperties_AutomationId.png
    • Border_CornerRadius_BorderThickness.png-dark

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-radiobuttons branch from d0ec9bd to 7d619b3 Compare November 18, 2026 14:19
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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


Review summary

Verdict: ship. This is a read-only review by inspection. I did not build or run any tests, so the runtime results in the PR description are unverified by me. The @claude comment had no specific request, so I treated it as a review request and made no code changes.

Issues: 0 blocking, 0 major, 0 new. I posted no inline comments.

Resolved since the last review

  • CI flakes. BasicKeyboardTest is now excluded on SkiaIOS. ScrollViewerSettingSelectionDoesNotMoveFocus is now excluded on SkiaMacOS. Both carry [GitHubWorkItem] links to Flaky RadioButtons interaction tests on Skia iOS and macOS #26579, so the skips are tracked. The branch head 7d619b39 contains this change. I could not resolve the d0ec9bdb770 hash cited in the reply, probably because the rebase rewrote it.
  • Element factory cast. The hard cast on IElementFactoryShim was removed by the rebase onto fix(itemsrepeater): Accept a custom IElementFactory as ItemTemplate #26324, as the author described.
  • ToString() nit. The author keeps i.ToString() + "Radio Button" verbatim from upstream so the port diffs cleanly. That is reasonable, so I'm dropping this nit.

Remaining notes (non-blocking)

  • ScrollViewerSettingSelectionDoesNotMoveFocus is still [Ignore]d where HAS_INPUT_INJECTOR is undefined. Please confirm it runs on the Skia desktop CI legs.
  • The IsLoaded && IsInLiveTree guard exists only because ItemsRepeater.OnUnloadedUno raises a fake Reset on unload. The author agreed to fix that at the source in a follow-up. It would be worth filing an issue for it.
  • areas.json will conflict textually with chore(winui-sync): Onboard ProgressRing at WinUI 2.6.5 #26486. Whichever PR merges second needs a trivial rebase.
  • The screenshot-compare diffs (425 on Linux, 492 on Windows) span unrelated samples. I did not check them, so please confirm they match the baseline noise seen on other PRs.

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-radiobuttons branch from 7d619b3 to 7e69506 Compare November 18, 2026 15:40
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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


Review summary

Verdict: ship. This is a read-only review by inspection. I did not build or run any tests, so the runtime results in the PR description are unverified by me. The @claude comment had no specific request, so I treated it as a review request and made no code changes.

Issues: 0 blocking, 0 major, 0 new. I posted no inline comments.

Checked on the current head (7e69506f)

  • BasicKeyboardTest is excluded on SkiaIOS and ScrollViewerSettingSelectionDoesNotMoveFocus on SkiaMacOS. Both carry [GitHubWorkItem] links to Flaky RadioButtons interaction tests on Skia iOS and macOS #26579, so the earlier CI-failure concern is tracked.
  • ScrollViewerSettingSelectionDoesNotMoveFocus is still [Ignore]d when HAS_INPUT_INJECTOR is undefined. Please confirm it runs on the Skia desktop CI legs.
  • The i.ToString() + "Radio Button" nit stays dropped. It matches upstream verbatim.

Non-blocking notes

  • The IsLoaded && IsInLiveTree guard exists only because ItemsRepeater.OnUnloadedUno raises a fake Reset on unload. The author agreed to fix that at the source later. Please file a follow-up issue so it isn't lost.
  • areas.json will conflict textually with chore(winui-sync): Onboard ProgressRing at WinUI 2.6.5 #26486. Whichever PR merges second needs a trivial rebase.
  • The screenshot-compare diffs (425 on Linux, 492 on Windows) span unrelated samples. I did not check them, so please confirm they match the baseline noise seen on other PRs.

Base automatically changed from dev/mazi/winui-sync-progressring to master November 18, 2026 18:07
MartinZikmund and others added 5 commits November 18, 2026 19:07
Upstream RadioButtons is unchanged from WinUI 1.4.1 to 2.6.5, so the
catch-up is the line-by-line review of a port that predates the MUX
Reference headers:

- Left arrow moved focus Right and treated the first item as the last
- ColumnMajorUniformToLargestGridLayout compared against float.Epsilon
  instead of FLT_EPSILON, and started from Size.Empty
- The element factory ignored DataTemplateSelector and reset the
  wrapper for unrecognized values
- Template and items-source handlers are now revoked on re-template
- Drop the RS3 check and use InputKeyboardSource like upstream

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtzW3o9yaCzcTjhsgHm
- ElementPrepared re-checked the container at SelectedIndex (#4689).
  Selection set before load now works without it: covered by
  When_SelectedIndex_Set_Before_Load and When_SelectedItem_Set_Before_Load.
- The repeater Unloaded handler stood in for the C++ destructor. The
  layout lives in the control's own template, so its handler cannot keep
  the control alive; the leak tests pass without it.
- Items had an unused internal setter; upstream is get-only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtzW3o9yaCzcTjhsgHm
- Port the InteractionTests as runtime tests, with the test page rebuilt
  in code. AccessKeys is ignored (AccessKeyInvoked is not implemented,
  #17130), GamepadCanEscapeAndDoesNotSelectWithFocus is ignored as
  upstream, and RS2MultiColumnKeyboardTest is not a test method upstream.
- Rename RadioButtonTests.mux.cs after its upstream file and align
  VerifyIsEnabledChangeUpdatesVisualState with it.
- Cover SelectedItem set before load.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNtzW3o9yaCzcTjhsgHm
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/winui-sync-radiobuttons branch from 7e69506 to e228b2c Compare November 18, 2026 18:07
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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


Review summary

Verdict: ship. This is a read-only review based on the PR context and the earlier threads. I did not build or run anything, so the runtime results in the PR description are unverified by me. The @claude comment had no specific request, so I treated it as a review request and made no code changes or new inline comments.

Issues: 0 blocking, 0 major, 0 new.

Resolved since earlier reviews

Non-blocking notes

  • ScrollViewerSettingSelectionDoesNotMoveFocus is still [Ignore]d where HAS_INPUT_INJECTOR is undefined. Please confirm it runs on the Skia desktop CI legs.
  • The IsLoaded && IsInLiveTree guard exists only because ItemsRepeater.OnUnloadedUno raises a fake Reset on unload. Please file a follow-up issue so this isn't lost.
  • areas.json will conflict textually with chore(winui-sync): Onboard ProgressRing at WinUI 2.6.5 #26486. Whichever PR merges second needs a trivial rebase.
  • The screenshot-compare diffs (425 on Linux, 492 on Windows) span unrelated samples. I did not check them. Please confirm they match the baseline noise seen on other PRs.

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 247401 found UI Test snapshots differences: skia-linux-screenshots: 235, skia-windows-screenshots: 247

Details
  • skia-linux-screenshots: 235 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • BitmapIcon_Foreground.png-dark
    • BitmapIcon_Foreground.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • ClipboardTests.png-dark
    • ButtonClippingTestsControl.png-dark
    • Buttons.png-dark
    • Buttons.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Accessibility_Showcase.png-dark
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
  • skia-windows-screenshots: 247 changed over 2500

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png-dark
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AutomationProperties_AutomationId.png
    • BenchmarkDotNet.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • AnimatedVisualsTestbedPage.png-dark
    • Basics.png-dark
    • Basics.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • AnimatedBackVisualSourceSamplePage.png
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • CalendarView_Theming.png-dark
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • AutomationProperties_AutomationId.png-dark

@MartinZikmund
MartinZikmund merged commit a9aa61d into master Nov 19, 2026
52 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/winui-sync-radiobuttons branch November 19, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation 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 RadioButtons

5 participants