Skip to content

feat: NavigationView update to latest WinUI sources - #21132

Merged
MartinZikmund merged 33 commits into
masterfrom
dev/mazi/navigationviewitem
Jun 25, 2026
Merged

MartinZikmund merged 33 commits into
masterfrom
dev/mazi/navigationviewitem

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Jul 23, 2025 •

Copy link
Copy Markdown
Member

GitHub Issue: closes #21131, closes #19482, closes #8584, closes #20193, closes #20247, closes #20588, closes #20911

PR Type: ✨ Feature

What is the current behavior? 🤔

NavigationView/NavigationViewItem and their Fluent styles were ported from old WinUI sources (RS-era styles, MUX 1.7.3-era code). This drift caused several long-standing issues:

What is the new behavior? 🚀

NavigationView is aligned 1:1 with WinUI at microsoft-ui-xaml commit bac7a9c33 — code, Fluent v2 styles, and the MUX reference headers.

Parity review fixed additional transliteration defects on top of the straight port:

  • Remove → RemoveAt in top-nav overflow recovery.
  • Item-pool initialization NRE.
  • SerialDisposable auto-revoke for the title-bar and SplitView callbacks.
  • ExpandedModeThresholdWidth coercion.

7 new runtime tests cover the fixed issues, validated on Skia Desktop (Win32).

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Other information ℹ️

The sub-issues of #21054 were systematically triaged. Issues not closed by this PR, and why:

@MartinZikmund MartinZikmund changed the title feat: NavigationViewItemPresenter update to latest WinUI sources feat: NavigationView update to latest WinUI sources Jul 23, 2025
@unodevops

Copy link
Copy Markdown
Contributor

2 similar comments
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/navigationviewitem branch from 2021fee to aa02481 Compare July 25, 2025 08:48
@unodevops

Copy link
Copy Markdown
Contributor

1 similar comment
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 171864 has failed on Uno.UI - CI.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 171876 has failed on Uno.UI - CI.

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/navigationviewitem branch from 0911934 to 8437f22 Compare July 25, 2025 15:39
@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund force-pushed the dev/mazi/navigationviewitem branch from 8437f22 to 294e010 Compare July 28, 2025 14:25
@unodevops

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 10 days.

@github-actions github-actions Bot added the stale This item has been marked as stale and will be closed if there is no activity. label Sep 27, 2025
@github-actions

github-actions Bot commented Oct 7, 2025

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions Bot closed this Oct 7, 2025
@MartinZikmund MartinZikmund reopened this Oct 7, 2025
@MartinZikmund MartinZikmund removed the stale This item has been marked as stale and will be closed if there is no activity. label Oct 7, 2025
@MartinZikmund MartinZikmund self-assigned this Nov 24, 2025
@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 10 days.

@github-actions github-actions Bot added the stale This item has been marked as stale and will be closed if there is no activity. label Jan 24, 2026
@github-actions

github-actions Bot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

This PR was closed because it has been stalled for 10 days with no activity.

@github-actions github-actions Bot closed this Feb 3, 2026
@MartinZikmund MartinZikmund removed the stale This item has been marked as stale and will be closed if there is no activity. label Apr 20, 2026
@MartinZikmund MartinZikmund reopened this Apr 20, 2026
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/navigationviewitem branch from 294e010 to 3387da5 Compare June 3, 2026 15:14
Copilot AI review requested due to automatic review settings June 3, 2026 15:14
MartinZikmund and others added 10 commits June 24, 2026 09:59
SettingsItem, NavigationViewItem.CompactPaneLength/MenuItems and
NavigationViewTemplateSettings.OpenPaneLength are get-only in WinUI;
NavigationViewSelectionChangedEventArgs is not activatable.

Co-Authored-By: Claude Fable 5 <[email protected]>
- Use safe `as IElementFactoryShim` cast in NavigationViewItemsFactory
- Replace stale Tapped-era chevron comment with current pointer flow
- Resolve personal TODO notes in native-only deferred-state blocks

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Keep the `// TODO Uno:` convention for the native-Android deferred
visual-state divergence; align the chevron and pointer-canceled
comments with the WinUI source instead of dropping the markers.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Wrap the previously un-gated Uno-specific code so every deviation from the
WinUI source is explicit: deferred pressed/over visual states, the Android
back-button rule, ThemeShadow support checks, GetForCurrentViewSafe, the
item revoker storage and the #4727 pane-header workaround. Modifications
keep the exact WinUI original under #else.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Align the four CoerceToGreaterThanZero changed-callbacks with WinUI's
generated memcmp guard (DoubleToInt64Bits), so small negatives in the
(-0.1, 0) band set via SetValue coerce to 0 instead of slipping past the
old Math.Abs(...) > 0.1 tolerance.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01KdpTap1i2v8UE7XDWYauXB
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/navigationviewitem branch from 0665f2c to 3ab6c41 Compare June 24, 2026 08:02
@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 3m 2s —— View job


PR Review Complete

  • Gather context and understand the request
  • Identify new commits since last review (d3b83619, 3ab6c412)
  • Read changed files from new commits
  • Check for correctness, cross-platform, and style issues
  • Post inline review comments (none needed)
  • Update summary comment

Overall Verdict

The two new commits are clean. The last open finding from prior reviews (bit-exact compare for pane-length DP coercion) is now fixed. No new issues found.

New Commits

Commit Change Assessment
d3b83619 chore: Adjust visibility _fullyInitialized narrowed to private protected in NavigationViewItemBase.cs ✅ Correct — the field lives inside #if !UNO_HAS_ENHANCED_LIFECYCLE; the reference build doesn't define that symbol and wouldn't have the field, so protected would create an API surface divergence. All three subclasses (NavigationViewItem, NavigationViewItemHeader, NavigationViewItemSeparator) are in the same assembly and retain access via private protected.
3ab6c412 fix: Coerce pane-length DPs with bit-exact compare All four CoerceToGreaterThanZero callbacks updated from Math.Abs(...) > 0.1 to BitConverter.DoubleToInt64Bits(coercedValue) != BitConverter.DoubleToInt64Bits(value) ✅ Correct — addresses the last open finding. SetValue(prop, -0.05) now produces coercedValue = 0.0; the bit-exact guard fires (different bit patterns) and the corrective re-set coerces to 0.0. Also handles NaN correctly (DoubleToInt64Bits(NaN) == DoubleToInt64Bits(NaN) for identical bit patterns, no spurious re-set). Test When_NegativePaneLength_Set_Via_SetValue_Coerced_To_Zero now passes.

All Previously Flagged Issues — Final Status

Issue Status
Math.Abs(...) > 0.1 guard in four DP callbacks ✅ Fixed (3ab6c412)
Hard cast (IElementFactoryShim) ✅ Fixed — as cast with explanatory comment
Stale comment referencing OnNavigationViewItemTapped ✅ Fixed — comment removed to match WinUI source
// TODO MZ: Still needed? personal notes ✅ Fixed — // TODO Uno: convention applied
#if false dead block ✅ Fixed — removed; rationale added as inline comment
m_itemTemplateWrapper not reset on null ✅ Accepted — intentional WinUI 1:1 parity
#if HAS_UNO on UnhookEvents() ✅ Fixed (prior commit)
Width/Height measurement swap ✅ Fixed (prior commit)
NavigationViewItemCollapsedEventArgs.cs header truncated ✅ Fixed (prior commit)
Blank lines after usings in SharedHelpers.cs ✅ Fixed (prior commit)
Test coverage for HandleExpansionStateMemory ✅ Added (commit 9bafd033)
API surface alignment (SettingsItem, OpenPaneLength, etc.) ✅ Fixed (commit ae69d567)
#if IS_UNO → #if !UNO_HAS_ENHANCED_LIFECYCLE ✅ Fixed (commit ab51186f)
#if HAS_UNO divergence marking ✅ Added (commit dd39d5e3)
#if HAS_UNO → #if !__SKIA__ (more precise guards) ✅ Added (commit 42f61e1a)
_fullyInitialized visibility (protected → private protected) ✅ Fixed (d3b83619)

The PR is clean. All review findings have been addressed or explicitly accepted with rationale.

@unodevops

Copy link
Copy Markdown
Contributor

OnNavigationViewItemInvoked carried a Uno-only block that called
AnimateSelectionChanged a second time after UpdateSelectionModelSelection
had already driven the full ChangeSelection -> AnimateSelectionChanged
chain. WinUI animates once per invoke; the extra call re-entered the
"same target" branch and reset the incoming indicator's opacity to 0,
so it stayed invisible until the animation completed (it "popped in"
instead of animating into the new item). Drop the block so the flow
matches WinUI 1:1; collapsed/minimal cases are already handled by the
shared CompletePendingSelectionChange / FindLowestLevelContainer path.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01KdpTap1i2v8UE7XDWYauXB
@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 50s —— View job


PR Review Complete

  • Gather context and understand the request
  • Read new commit (0b0a570d) and analyze changes
  • Check for correctness, cross-platform, and style issues
  • Post inline review comments (none needed)
  • Update summary comment

Overall Verdict

The latest commit (0b0a570d fix: Remove duplicate selection-indicator animation on invoke) is clean and correct. No new findings.

What This Commit Does

Removes a 20-line #if IS_UNO block from OnNavigationViewItemInvoked in NavigationView.cs. The removed block called AnimateSelectionChanged(indicatorTarget) a second time after UpdateSelectionModelSelection had already driven the full ChangeSelection → AnimateSelectionChanged(nvi) chain (lines 2167, 2642). The duplicate call re-entered AnimateSelectionChanged with the same item as both prev and next, which hit the "same target" branch and reset the incoming indicator's opacity to 0 — causing the indicator to "pop in" at full opacity when the animation completed rather than animating in. Removing the block makes the flow match WinUI 1:1.

Chain verified:

  • OnNavigationViewItemInvoked → UpdateSelectionModelSelection → ChangeSelection → AnimateSelectionChanged(nvi) (line 2642, if container is realized)
  • For collapsed/minimal items: ChangeSelection → queues CompletePendingSelectionChange → AnimateSelectionChanged(FindLowestLevelContainerToDisplaySelectionIndicator()) (line 2677)
  • Neither path needs a second call from OnNavigationViewItemInvoked.

Minor observation (non-blocking): The existing test When_Selection_Changes_Between_Items_Indicator_Animation_Does_Not_Throw (line 607) exercises API-driven selection (nv.SelectedItem = itemB), not user invocation (OnNavigationViewItemInvoked / simulated tap). A test simulating a pointer click on a NavigationViewItem would provide direct regression coverage for this fix, but given the simplicity of the removal and the clean WinUI alignment, this is not blocking.

All Previously Flagged Issues — Final Status

Issue Status
Math.Abs(...) > 0.1 guard in four DP callbacks ✅ Fixed (3ab6c412)
Hard cast (IElementFactoryShim) ✅ Fixed — as cast with explanatory comment
Stale comment referencing OnNavigationViewItemTapped ✅ Fixed — comment removed to match WinUI source
// TODO MZ: Still needed? personal notes ✅ Fixed — // TODO Uno: convention applied
#if false dead block ✅ Fixed — removed; rationale added as inline comment
m_itemTemplateWrapper not reset on null ✅ Accepted — intentional WinUI 1:1 parity
#if HAS_UNO on UnhookEvents() ✅ Fixed (prior commit)
Width/Height measurement swap ✅ Fixed (prior commit)
NavigationViewItemCollapsedEventArgs.cs header truncated ✅ Fixed (prior commit)
Blank lines after usings in SharedHelpers.cs ✅ Fixed (prior commit)
Test coverage for HandleExpansionStateMemory ✅ Added (commit 9bafd033)
API surface alignment (SettingsItem, OpenPaneLength, etc.) ✅ Fixed (commit ae69d567)
#if IS_UNO → #if !UNO_HAS_ENHANCED_LIFECYCLE ✅ Fixed (commit ab51186f)
#if HAS_UNO divergence marking ✅ Added (commit dd39d5e3)
#if HAS_UNO → #if !__SKIA__ (more precise guards) ✅ Added (commit 42f61e1a)
_fullyInitialized visibility (protected → private protected) ✅ Fixed (d3b83619)
Duplicate AnimateSelectionChanged on invoke ✅ Fixed (0b0a570d)

The PR is clean. All review findings have been addressed or explicitly accepted with rationale.

@unodevops

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 45s —— View job


PR Review Complete

  • Gather context and understand the request
  • Identify new commits since last review (0b0a570d)
  • Read changed files from new commit (15dc2100)
  • Check for correctness, cross-platform, and style issues
  • Post inline review comments (none needed)
  • Update summary comment

Overall Verdict

The latest commit (15dc2100 fix: Unlink recycled NavigationView items from repeater parent) is clean and correct. No new findings.

What This Commit Does

Changes args.Parent is Panel panel → args.Parent is IPanel panel in NavigationViewItemsFactory.UnlinkElementFromParent. This is a correct Uno-specific fix:

  • In WinUI, ItemsRepeater derives from Panel, so is Panel caught repeater parents and properly unlinked recycled containers.
  • In Uno, ItemsRepeater is FrameworkElement + IPanel (not a Panel subclass), so the old cast always failed — containers were left parented to their source repeater. On top-nav overflow selection, the still-parented de-realized container (index −1) caused GetIndexPathForContainer to index GetOverflowItems()[-1] and throw.
  • Panel implements IPanel (Panel.cs:25), so is IPanel catches both Panel subclasses and Uno's repeater — the fix is strictly more general without changing semantics for any existing path.

Consistency: RecyclePool.cs:128 uses the same owner as IPanel pattern for identical reasons (// UNO: customized as on WinUI the ItemsRecycler is actually a fake Panel). The fix now aligns NavigationViewItemsFactory with RecyclePool.

The commit message correctly identifies the broken invariant (parent-link not cleared on recycle because the cast failed), the root cause (WinUI/Uno ItemsRepeater inheritance difference), and the fix boundary (match IPanel as already done in RecyclePool). A root-cause fix, not a guard.

All Previously Flagged Issues — Final Status

Issue Status
Math.Abs(...) > 0.1 guard in four DP callbacks ✅ Fixed (3ab6c412)
Hard cast (IElementFactoryShim) ✅ Fixed — as cast with explanatory comment
Stale comment referencing OnNavigationViewItemTapped ✅ Fixed — comment removed to match WinUI source
// TODO MZ: Still needed? personal notes ✅ Fixed — // TODO Uno: convention applied
#if false dead block ✅ Fixed — removed; rationale added as inline comment
m_itemTemplateWrapper not reset on null ✅ Accepted — intentional WinUI 1:1 parity
#if HAS_UNO on UnhookEvents() ✅ Fixed (prior commit)
Width/Height measurement swap ✅ Fixed (prior commit)
NavigationViewItemCollapsedEventArgs.cs header truncated ✅ Fixed (prior commit)
Blank lines after usings in SharedHelpers.cs ✅ Fixed (prior commit)
Test coverage for HandleExpansionStateMemory ✅ Added (commit 9bafd033)
API surface alignment (SettingsItem, OpenPaneLength, etc.) ✅ Fixed (commit ae69d567)
#if IS_UNO → #if !UNO_HAS_ENHANCED_LIFECYCLE ✅ Fixed (commit ab51186f)
#if HAS_UNO divergence marking ✅ Added (commit dd39d5e3)
#if HAS_UNO → #if !__SKIA__ (more precise guards) ✅ Added (commit 42f61e1a)
_fullyInitialized visibility (protected → private protected) ✅ Fixed (d3b83619)
Duplicate AnimateSelectionChanged on invoke ✅ Fixed (0b0a570d)
Recycled containers left parented (Panel → IPanel cast) ✅ Fixed (15dc2100)

The PR is clean. All review findings have been addressed or explicitly accepted with rationale.

@unodevops

Copy link
Copy Markdown
Contributor

NavigationViewItemsFactory.UnlinkElementFromParent matched the recycled
container's parent against the Panel class, ported from WinUI's
try_as<Panel>(). In WinUI that is an interface query that succeeds on an
ItemsRepeater because its implementation derives from
DeriveFromPanelHelper_base (the public base stays FrameworkElement). Uno
models that split as `ItemsRepeater : FrameworkElement, IPanel`, so the
class check `is Panel` fails and the container is left parented to its
source repeater. During a top-nav overflow selection the de-realized
container (GetElementIndex == -1) then stays under the overflow repeater,
so GetIndexPathForContainer indexes GetOverflowItems()[-1] and throws.
Match IPanel (Panel implements it too) to unlink exactly like WinUI, as
already done in RecyclePool.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01KdpTap1i2v8UE7XDWYauXB
@MartinZikmund
MartinZikmund force-pushed the dev/mazi/navigationviewitem branch from 15dc210 to 6efdaa9 Compare June 24, 2026 13:29
@github-actions

github-actions Bot commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

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


PR Review Complete

  • Gather context and understand the request
  • Identify new commits since last review (0b0a570d)
  • Read changed files from new commit (6efdaa94)
  • Check for correctness, cross-platform, and style issues
  • Post inline review comments (none needed)
  • Update summary comment

Overall Verdict

The new commit (6efdaa94 fix: Unlink recycled NavigationView items from repeater parent) is an improved version of the previously reviewed 15dc2100 — same Panel → IPanel fix, now with an expanded explanatory comment. No new findings.

What This Commit Does

Adds a 4-line explanatory comment above if (args.Parent is IPanel panel) in NavigationViewItemsFactory.UnlinkElementFromParent:

WinUI uses try_as<Panel>() here — an interface query that succeeds on an ItemsRepeater because its implementation derives from DeriveFromPanelHelper_base (public base is still FrameworkElement). Uno models that split as FrameworkElement, IPanel, so the faithful equivalent is is IPanel, not the class check is Panel (Panel implements IPanel too, so real panels are still covered).

Verified clean:

  • IPanel is in Microsoft.UI.Xaml.Controls — the same namespace as NavigationViewItemsFactory — no additional using needed.
  • The comment accurately describes the divergence: WinUI's try_as<Panel>() is a COM QueryInterface, Uno's equivalent is is IPanel.
  • Panel implements IPanel (confirmed in IPanel.cs), so existing Panel-derived parents are unaffected.
  • The comment length (4 lines for a non-obvious WinUI/Uno architectural divergence) is justified per the code-style rule on "subtle invariants" and stays well short of "a wall of text."

All Previously Flagged Issues — Final Status

Issue Status
Panel → IPanel cast in UnlinkElementFromParent ✅ Fixed (6efdaa94) — now with explanatory comment
Math.Abs(...) > 0.1 guard in four DP callbacks ✅ Fixed (3ab6c412)
Hard cast (IElementFactoryShim) ✅ Fixed — as cast with explanatory comment
Stale comment referencing OnNavigationViewItemTapped ✅ Fixed — comment removed to match WinUI source
// TODO MZ: Still needed? personal notes ✅ Fixed — // TODO Uno: convention applied
#if false dead block ✅ Fixed — removed; rationale added as inline comment
m_itemTemplateWrapper not reset on null ✅ Accepted — intentional WinUI 1:1 parity
#if HAS_UNO on UnhookEvents() ✅ Fixed (prior commit)
Width/Height measurement swap ✅ Fixed (prior commit)
NavigationViewItemCollapsedEventArgs.cs header truncated ✅ Fixed (prior commit)
Blank lines after usings in SharedHelpers.cs ✅ Fixed (prior commit)
Test coverage for HandleExpansionStateMemory ✅ Added (commit 9bafd033)
API surface alignment (SettingsItem, OpenPaneLength, etc.) ✅ Fixed (commit ae69d567)
#if IS_UNO → #if !UNO_HAS_ENHANCED_LIFECYCLE ✅ Fixed (commit ab51186f)
#if HAS_UNO divergence marking ✅ Added (commit dd39d5e3)
#if HAS_UNO → #if !__SKIA__ (more precise guards) ✅ Added (commit 42f61e1a)
_fullyInitialized visibility (protected → private protected) ✅ Fixed (d3b83619)
Duplicate AnimateSelectionChanged on invoke ✅ Fixed (0b0a570d)

The PR is clean. All review findings have been addressed or explicitly accepted with rationale.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 219614 has failed on Uno.UI - CI.

@mergify

mergify Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@MartinZikmund
MartinZikmund merged commit bdee6d9 into master Jun 25, 2026
65 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/navigationviewitem branch June 25, 2026 06:18
YoungSx added a commit to salmonloop/salmon-egg that referenced this pull request Aug 4, 2026
…ettled

Rapid session switching under concurrent catalog load left the gray selection
mask stranded on several rows at once, contradicting NavigationView's contract
that the entire control shows no more than one selection indicator.

WinUI documents the trigger: an item "that is currently selected and/or has
focus where the move is achieved by a 'Remove' followed by an 'Add' will lose
focus and no longer be selected", and prescribes INotifyCollectionChanged so a
real Move action is delivered instead. Uno 6.6.x decomposes
NotifyCollectionChangedAction.Move back into Remove+Add inside ItemsRepeater,
so every reorder recycles a realized container. The recycle pool does not clear
the selected flag and NavigationView's deselect of the previous item silently
no-ops once it can no longer resolve that container, so one poisoned container
keeps being handed to other rows and repainted selected. Fixed upstream by
unoplatform/uno#21132, which is not in any released 6.6 line.

Insert and remove are safe: for those actions the repeater only re-indexes the
surviving realized elements. So the pane now holds already-rendered rows in
place while a session activation is in flight or the catalog is still loading,
appending newcomers instead of relocating anything, and converges to the full
recency order once quiet. Nothing reads or writes control-owned selection state.

Verified with a Skia desktop stress run (60 rounds of rapid switching against a
5ms catalog-churn pump, ~500 audits of the realized container tree): the pane
never exceeds one selected container, and the same run reports two when the hold
is disabled.
YoungSx added a commit to salmonloop/salmon-egg that referenced this pull request Sep 4, 2026
6.7 is the first stable line that contains unoplatform/uno#21132, which
re-syncs NavigationView with the latest WinUI sources and fixes the
container-recycling selection defect behind #171. 6.8 is not an option:
NuGet only publishes 6.8.0-dev.* and global.json sets
allowPrerelease: false.

Uno.WinUI.Lottie is the only Uno package pinned explicitly, so it moves
with the line (6.6.166 -> 6.7.103); the rest stay implicit Uno.Sdk
versions.

6.7 also pulls in the transitive WebView2Aot package, whose WebView2.dll
declares a top-level "WebView2" namespace. A namespace in the global
namespace wins simple-name lookup over a using-imported type, so the
bare name in XtermTerminalView stopped resolving to the XAML control
(CS0118); name the control type in full.

net10.0-desktop builds Release with 0 warnings and 0 errors and the
Presentation.Core suite is green. net10.0-browserwasm still fails
UNOWA0001 on this machine, unchanged from 6.6.29 -
WasmNativeWorkloadAvailable is false on both SDK versions - so the WASM
head needs CI to verify.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
YoungSx added a commit to salmonloop/salmon-egg that referenced this pull request Sep 4, 2026
6.7 is the first stable line that contains unoplatform/uno#21132, which
re-syncs NavigationView with the latest WinUI sources and fixes the
container-recycling selection defect behind #171. 6.8 is not an option:
NuGet only publishes 6.8.0-dev.* and global.json sets
allowPrerelease: false.

Uno.WinUI.Lottie is the only Uno package pinned explicitly, so it moves
with the line (6.6.166 -> 6.7.103); the rest stay implicit Uno.Sdk
versions.

6.7 also pulls in the transitive WebView2Aot package, whose WebView2.dll
declares a top-level "WebView2" namespace. A namespace in the global
namespace wins simple-name lookup over a using-imported type, so the
bare name in XtermTerminalView stopped resolving to the XAML control
(CS0118); name the control type in full.

net10.0-desktop builds Release with 0 warnings and 0 errors and the
Presentation.Core suite is green. net10.0-browserwasm still fails
UNOWA0001 on this machine, unchanged from 6.6.29 -
WasmNativeWorkloadAvailable is false on both SDK versions - so the WASM
head needs CI to verify.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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 area/code-generation Categorizes an issue or PR as relevant to code generation

Projects

None yet

4 participants