You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MoveOwnershipToLayoutFromElementFactory assert is failing with NavigationView #4691
difficulty/challenging 🤯Categorizes an issue for which the difficulty level is reachable with internals understandinghas-repro-branchkind/bugSomething isn't workingproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)project/navigation-lifecycle 🧬Categorizes an issue or PR as relevant to the navigation and lifecycle (NavigationView, AppBar, ...)
Assert is failing in the MoveOwnershipToLayoutFromElementFactory method when HierarchicalNavigationViewMarkup sample is opened. The assert has been temporarily commented out.
Expected behavior
Should not fail.
How to reproduce it (as minimally and precisely as possible)
changed the title [-]MoveOwnershipToLayoutFromElementFactory assert is failing with NavigationView[/-][+]`MoveOwnershipToLayoutFromElementFactory` assert is failing with `NavigationView`[/+]on Jun 1, 2023
Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.
⚠️ The test(s) pass on current master — the hierarchical NavigationView loads and expands without crashing. The underlying VirtualizationInfo.MoveOwnershipToLayoutFromElementFactory assertion (line 91 of VirtualizationInfo.cs) is still commented out with a reference to this issue. The test exercises 3-level deep hierarchical NavigationView items with expansion, which is the scenario that originally triggered the assert. The test is provided as a regression test and starting point — re-enabling the assert in VirtualizationInfo.cs would be needed to verify the ownership state machine invariant is actually correct.
difficulty/challenging 🤯Categorizes an issue for which the difficulty level is reachable with internals understandinghas-repro-branchkind/bugSomething isn't workingproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)project/navigation-lifecycle 🧬Categorizes an issue or PR as relevant to the navigation and lifecycle (NavigationView, AppBar, ...)
Activity
chore(NavigationView): NavigationViewItem workarounds
chore(NavigationView): NavigationViewItem workarounds
chore(NavigationView): NavigationViewItem workarounds
chore(NavigationView): NavigationViewItem workarounds
chore(NavigationView): NavigationViewItem workarounds
chore(NavigationView): NavigationViewItem workarounds
chore(NavigationView): NavigationViewItem workarounds
chore(NavigationView): NavigationViewItem workarounds
chore(NavigationView): NavigationViewItem workarounds
[-]MoveOwnershipToLayoutFromElementFactory assert is failing with NavigationView[/-][+]`MoveOwnershipToLayoutFromElementFactory` assert is failing with `NavigationView`[/+]github-actions commentedon Jul 28, 2025
Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.
NavigationView#21054test: Reproduce MoveOwnershipToLayoutFromElementFactory assert with h…
MartinZikmund commentedon Apr 8, 2026
Repro generator
Runtime test(s) added in branch
dev/mazi/repro/4691:src/Uno.UI.RuntimeTests/Tests/Microsoft_UI_Xaml_Controls/Given_NavigationView.cs→When_HierarchicalNavigationView_Loaded_Then_NoOwnershipAssertFailureVirtualizationInfo.MoveOwnershipToLayoutFromElementFactoryassertion (line 91 ofVirtualizationInfo.cs) is still commented out with a reference to this issue. The test exercises 3-level deep hierarchical NavigationView items with expansion, which is the scenario that originally triggered the assert. The test is provided as a regression test and starting point — re-enabling the assert inVirtualizationInfo.cswould be needed to verify the ownership state machine invariant is actually correct.