Skip to content

fix(navigationview): Sync NavigationView with WinUI 2.6.5 - #26456

Merged
MartinZikmund merged 4 commits into
masterfrom
sync/winui/navigationview
Nov 16, 2026
Merged

MartinZikmund merged 4 commits into
masterfrom
sync/winui/navigationview

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #26455

PR Type:

💬 Other: automated sync of ported WinUI code

What changed? 🚀

Ports the upstream changes to NavigationView up to WinUI 2.6.5 and moves its sync baseline.

  • Port build: passed (no tests were run)
  • Skipped items: 0

Sync to WinUI 2.6.5 (bac7a9c33f → c29edd64ae)

Upstream changes

  • NavigationView.cpp: servicing fix 62995866 in UpdatePaneLayout (use menuItemsActualHeight in the half-height check; the "couldn't determine menuItems" branch only runs if totalAvailableHeight >= footerItemsRepeater.ActualHeight, avoids negative MaxHeight).
  • NavigationView.cpp: local c_infSize static replacing LayoutUtils::c_infSize; for (const auto& -> for (auto in OnRepeaterGettingFocus; Containment.h include; BOM added.
  • NavigationViewHelper.h: inline constexpr -> static constexpr for the visual-state name constants.
  • NavigationViewItem.cpp: servicing fix 63007686 — the queued deferred flyout show re-validates IsExpanded / ShouldRepeaterShowInFlyout / root grid / attached flyout before showing (plus telemetry when skipped).
  • NavigationView_ApiTests/NavigationViewTests.cs: VerifyVisualTree split into _OptimizedStyles and _OldStyles variants with file-name suffixes.
  • NavigationView_InteractionTests (CommonTests, EventTests, FocusBehaviorTests, NavigationViewTestsBase, PaneBehaviorTests, TopModeTests): test-infrastructure refactors.

Ported

  • NavigationView.cpp (UpdatePaneLayout fix 62995866) -> NavigationView.cs (the change is ported as enabled, since Uno has no Containment switch)
  • NavigationViewItem.cpp (deferred flyout re-validation, 63007686) -> NavigationViewItem.cs (Skia path that queues the callback; the non-Skia synchronous path is unchanged)
  • MUX Reference headers updated to tag winui3/release/2.6.5 in NavigationView.cs, NavigationViewItem.cs, NavigationViewHelper.cs

Not applicable

  • LayoutUtils::c_infSize -> local c_infSize and const auto& -> auto in the loop (NavigationView.cpp): C++ build/lifetime refactors; Uno's LayoutUtils.c_infSize has the same value.
  • Containment.h include, WINAPPSDK_CHANGEID defines and the telemetry TraceLogging block: Windows-only servicing/telemetry plumbing.
  • NavigationViewHelper.h inline -> static constexpr: C++ linkage only; C# constants unchanged.
  • NavigationView_ApiTests VerifyVisualTree split: Uno's port has this test commented out (no VisualTreeVerifier infrastructure).
  • NavigationView_InteractionTests/*: UI automation (TAEF) tests with no Uno counterpart; the existing Uno tests don't port them.

Skipped

None

PR Checklist ✅

@github-actions github-actions Bot added the winui-sync Automated sync of code ported from WinUI label Nov 13, 2026
@CLAassistant

CLAassistant commented Nov 13, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ MartinZikmund
❌ github-actions[bot]
You have signed the CLA already but the status is still pending? Let us recheck it.

@unodevops

Copy link
Copy Markdown
Contributor

@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 246453 found UI Test snapshots differences: skia-linux-screenshots: 234, skia-windows-screenshots: 246

Details
  • skia-linux-screenshots: 234 changed over 2496

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • Accessibility_Showcase.png-dark
    • AppWindowTitleBar Properties.png
    • Accessibility_Showcase.png
    • AnimatedVisualsTestbedPage.png-dark
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
    • Basics.png-dark
    • Basics.png
    • CalendarView_Theming.png-dark
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • AnimatedVisualsTestbedPage.png
    • BasicAcrylicBrushTest.png-dark
  • skia-windows-screenshots: 246 changed over 2496

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • AutomationProperties_StructureAndProps.png-dark
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • Accessibility_Showcase.png-dark
    • AnimatedBackVisualSourceSamplePage.png
    • Basics.png-dark
    • Basics.png
    • BenchmarkDotNet.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png

Lists the FluentTheme copies of the NavigationView styles in the area, so later syncs tell the port agent where they are. All four files match WinUI 2.6.5 apart from their headers (compared ignoring whitespace), so their headers now name 2.6.5 and the area's 2.6.5 baseline skips nothing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
@github-actions github-actions Bot added area/build Categorizes an issue or PR as relevant to build infrastructure kind/documentation labels Nov 14, 2026
The area is tracked, so its MUX Reference headers name only the upstream file; the area's baseline records the version. One header line per file, 39 files.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TXMNu2Uow7dC9EJ2fL3Hkw
@nventive-devops

Copy link
Copy Markdown
Contributor

The build 246533 found UI Test snapshots differences: skia-linux-screenshots: 209, skia-windows-screenshots: 334

Details
  • skia-linux-screenshots: 209 changed over 2496

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • AnimatedVisualsTestbedPage.png
    • BasicAcrylicBrushTest2.png-dark
    • BasicAcrylicBrushTest2.png
    • Buttons.png-dark
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • AnimatedVisualsTestbedPage.png-dark
    • AutomationProperties_StructureAndProps.png-dark
    • AutomationProperties_StructureAndProps.png
  • skia-windows-screenshots: 334 changed over 2496

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • CenteredGridinGridwithtwofixedsizechildren.png-dark
    • CenteredGridinGridwithtwofixedsizechildren.png
    • Accessibility_Showcase.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AutomationProperties_AutomationId.png
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png

@MartinZikmund
MartinZikmund marked this pull request as ready for review November 14, 2026 12:05
Copilot AI balanced review requested due to automatic review settings November 14, 2026 12:05

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.

@mergify

mergify Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@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 246543 found UI Test snapshots differences: skia-linux-screenshots: 233, skia-windows-screenshots: 325

Details
  • skia-linux-screenshots: 233 changed over 2496

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_Showcase.png
    • Accessibility_Showcase.png-dark
    • AnimatedVisualsTestbedPage.png
    • AppWindowTitleBar Properties.png-dark
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • ClipboardTests.png-dark
    • ComboBox_MaxDropdownHeight.png-dark
    • ComboBox_MaxDropdownHeight.png
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AppWindowTitleBar Properties.png
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • BasicAcrylicBrushTest.png-dark
    • Basics.png-dark
    • BasicAcrylicBrushTest.png
    • Basics.png
    • Border_CornerRadius_BorderThickness.png-dark
  • skia-windows-screenshots: 325 changed over 2496

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png
    • AppWindowTitleBar Properties.png-dark
    • BreadcrumbBarPage.png-dark
    • BreadcrumbBarPage.png
    • BasicAcrylicBrushTest.png-dark
    • BasicAcrylicBrushTest.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • Accessibility_Showcase.png-dark
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AutomationProperties_AutomationId.png-dark
    • AutomationProperties_AutomationId.png
    • BenchmarkDotNet.png-dark
    • BenchmarkDotNet.png
    • Border_CornerRadius_Binding.png-dark
    • Border_CornerRadius_Binding.png
    • Border_CornerRadius_BorderThickness.png-dark
    • Border_CornerRadius_BorderThickness.png

@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.

Diffed the upstream baselines (bac7a9c33f → c29edd64ae) against this PR:

  • UpdatePaneLayout (servicing fix 62995866): the C# is exactly the "change enabled" branch of the C++: menuItemsActualHeight <= totalAvailableHeightHalf, and the footer fallback branch only when totalAvailableHeight >= footerItemsRepeater.ActualHeight. Porting it as enabled is right, since there is no Containment switch here.
  • NavigationViewItem deferred flyout (63007686): the re-validation IsExpanded && ShouldRepeaterShowInFlyout() && m_rootGrid != null && GetAttachedFlyout(m_rootGrid) != null matches the C++ condition term for term, and sits in the queued-callback path. The telemetry branch is correctly left out.
  • Everything else in src is MUX Reference header normalisation (the pinned commit is dropped, as for other tracked areas); I listed every non-header changed line and found only the three code hunks above.
  • The "not applicable" list checks out: the c_infSize, const auto& and inline/static constexpr changes are C++-only, and upstream did not change any of the four FluentTheme XAML files between the two baselines, so adding them to areas.json needs no porting.

Minor notes, none blocking:

  1. The description says headers were updated to tag winui3/release/2.6.5 for three files, but the diff drops the version from every header (they now name only the upstream file), which is the intended convention; the wording looks stale.
  2. In NavigationViewItem.cs the #if !__SKIA__ branch can't compile, since Uno.UI is Skia-only, so it is a candidate for a later cleanup.
  3. Those four XAML files differ substantially from upstream (Uno-specific edits), so the first real XAML change upstream will need a hand merge; they are listed as sources, not byte-identical mirrors, so nothing is asserted.

@MartinZikmund
MartinZikmund merged commit c3a4dc6 into master Nov 16, 2026
53 checks passed
@MartinZikmund
MartinZikmund deleted the sync/winui/navigationview branch November 16, 2026 16:17
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 kind/documentation winui-sync Automated sync of code ported from WinUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[WinUI Sync] NavigationView → WinUI 2.6.5

6 participants