So I am trying to hide the vertical scroll bar of a ListView
in my UWP
application programatically in code.
I have tried looking at the MSDN documentation for Windows.UI.Xaml.Controls.ListView
But can't see a property. All I can find is the property ShowsScrollingPlaceholders
which states:
Gets or sets a value that indicates whether the view shows placeholder UI for items during scrolling.
But setting:
(Control as Windows.UI.Xaml.Controls.ListView).ShowsScrollingPlaceholders = false;
does nothing.
So is it possible to hide the Vertical scroll bar on a listview using UWP?
In Xaml you can do the following:
<ListView ScrollViewer.VerticalScrollBarVisibility="Hidden"></ListView>
and in code you can do:
Windows.UI.Xaml.Controls.ScrollViewer.SetVerticalScrollBarVisibility((Control as Windows.UI.Xaml.Controls.ListView), Windows.UI.Xaml.Controls.ScrollBarVisibility.Hidden);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With