Ilia Stoilov
Ilia Stoilov

Reputation: 632

Xamarin Forms: hiding the scrollbar in a ListView

Is there an easy way to hide the scrollbar in a ListView, but still leave it scrollable?

Upvotes: 4

Views: 6108

Answers (2)

Narendra Sharma
Narendra Sharma

Reputation: 682

You just need to provide VerticalScrollBarVisibility="Never" in your xaml.

<ListView x:Name="lst"  VerticalScrollBarVisibility="Never">
</ListView>

Upvotes: 2

Daniel Luberda
Daniel Luberda

Reputation: 7454

You can make a custom ListView renderers for each platform (http://developer.xamarin.com/guides/cross-platform/xamarin-forms/custom-renderer/):

On Android:

ListView.VericalScrollbarEnabled = false;

On iOS:

UIScrollView.ShowsVerticalScrollIndicator = false;

Upvotes: 9

Related Questions