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
NavigationViewItemSeparator in a top NavigationView draws a horizontal line through the next item #26668
With PaneDisplayMode="Top", a NavigationViewItemSeparator renders as a horizontal line. The line runs into the following item, so a disabled item after it looks struck through. The default style shows it, so it is not caused by a custom style. Removing the separator fixes the next item.
Expected behavior 🎯
As on WinUI: in top mode the separator is a short vertical line between items.
How to reproduce it (as minimally and precisely as possible) 🔬
Result: a horizontal line starts after "Downloads" and crosses the "Mail (disabled)" icon and label.
Possibly related (from reading the code, not confirmed): NavigationViewItemSeparator.cs uses the vertical line only when Position is TopPrimary or TopFooter, otherwise it falls back to the horizontal line. The separator may be measured before its position is set.
Workaround 🛠️
Don't use a separator in a top NavigationView.
Works on UWP/WinUI 🤷
Yes
Environment 📦
Uno.Sdk.Private 7.1.0-dev.477, Skia desktop on Windows 11. Found through the Uno.Themes Fluent sample (unoplatform/Uno.Themes#1695).
Activity