[NavigationView] FooterMenuItems show unwanted scrollbar
See original GitHub issueDescribe the bug NavigationView FooterMenuItems show unwanted scrollbar
Steps to reproduce the bug
- Add a
NavigationView
and add someNavigationViewItem
s - Hover with the mouse over the right area of the FooterMenuItems area
Expected behavior No Scrollbar when there’s enough space
Screenshots
NuGet package version: Microsoft.UI.Xaml 2.5.0
Additional context Might have been introduced here: https://github.com/microsoft/microsoft-ui-xaml/issues/3447
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:18 (6 by maintainers)
Top Results From Across the Web
How to hide vertical scrollbar in NavigationView?
It will automativally show the vertical scrollbar. I'm trying to hide it. I looked up in NavigationView 's style in generic.xaml, and found...
Read more >ScrollBarVisibility Enum (Windows.UI.Xaml.Controls)
A ScrollBar appears only when the viewport cannot display all of the content. The dimension of the content is set to the corresponding...
Read more >Creating Scrollable Content Using SwiftUI's ...
This guide aims to teach fundamental knowledge of the NavigationView and ScrollView to aid in building frontend components for iOS.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gabors We have to set the VerticalScrollBarVisibility mode on the internal scrollviewer used by the NavigationView for the footer menu items (you can see the internal scrollviewer in question linked above).
As a “hotfix” (until a WinUI version has been released with this fix) you can walk the visual tree and obtain the linked internal ScrollViewer (named “FooterItemsScrollViewer”) and set the
VerticalScrollBarVisibility
directly on the obtained scrollviewer instance. (Or you copy/paste the template into your project and set it in markup.)Is someone working on fixing this so we don’t have to apply awkward workarounds that don’t quite work?