Repository navigation
fix(navigationview): Sync NavigationView with WinUI 2.6.5 - #26456
Conversation
|
|
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-26456/docs/index.html |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 246453 found UI Test snapshots differences: Details
|
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
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
|
The build 246533 found UI Test snapshots differences: Details
|
There was a problem hiding this comment.
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.
|
This pull request is merged. |
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
|
The build 246543 found UI Test snapshots differences: Details
|
morning4coffe-dev
left a comment
There was a problem hiding this comment.
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 whentotalAvailableHeight >= footerItemsRepeater.ActualHeight. Porting it as enabled is right, since there is noContainmentswitch here.NavigationViewItemdeferred flyout (63007686): the re-validationIsExpanded && ShouldRepeaterShowInFlyout() && m_rootGrid != null && GetAttachedFlyout(m_rootGrid) != nullmatches the C++ condition term for term, and sits in the queued-callback path. The telemetry branch is correctly left out.- Everything else in
srcisMUX Referenceheader normalisation (the pinnedcommitis 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&andinline/static constexprchanges are C++-only, and upstream did not change any of the four FluentTheme XAML files between the two baselines, so adding them toareas.jsonneeds no porting.
Minor notes, none blocking:
- The description says headers were updated to
tag winui3/release/2.6.5for 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. - In
NavigationViewItem.csthe#if !__SKIA__branch can't compile, sinceUno.UIis Skia-only, so it is a candidate for a later cleanup. - 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.
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.5and moves its sync baseline.Sync to WinUI 2.6.5 (
bac7a9c33f→c29edd64ae)Upstream changes
menuItemsActualHeightin the half-height check; the "couldn't determine menuItems" branch only runs iftotalAvailableHeight >= footerItemsRepeater.ActualHeight, avoids negative MaxHeight).c_infSizestatic replacingLayoutUtils::c_infSize;for (const auto&->for (autoin OnRepeaterGettingFocus; Containment.h include; BOM added.inline constexpr->static constexprfor the visual-state name constants._OptimizedStylesand_OldStylesvariants with file-name suffixes.Ported
tag winui3/release/2.6.5in NavigationView.cs, NavigationViewItem.cs, NavigationViewHelper.csNot applicable
LayoutUtils::c_infSize-> localc_infSizeandconst auto&->autoin the loop (NavigationView.cpp): C++ build/lifetime refactors; Uno'sLayoutUtils.c_infSizehas the same value.inline->staticconstexpr: C++ linkage only; C# constants unchanged.Skipped
None
PR Checklist ✅
Screenshots Compare Test Runresults.