I have a list view that is marked as fill and expand with content aligned to the right. When the scroll bar is shown, it covers up the listview and content. Is there a property or some recommended way to compensate for the scroll bar?
@RaymondKelly - This is already logged as a bug - https://bugzilla.xamarin.com/show_bug.cgi?id=39843
IMHO - On Windows, either the scrollbar needs to be made partially transparent, or it needs to be thinner, or it needs to be moved below the content of the ScrollView, or (and this is not the preferred option) we need to have some documentation of the height of the scrollbar so that we can put some padding inside the ScrollView.
Ok, so I guess for now we just need to add some padding. Thanks!
@RaymondKelly - Unfortunately, the bug is still outstanding more than 18 months later. I did the padding as a temporary (but not very nice) workaround. Did you by any chance work out how to change the opacity/transparency of the UWP scroll bar without the change affecting the rest of the ScrollViewer?
@RaymondKelly - Three years late, I know ;-)
To identify whether the scroll bar is currently visible on UWP, I ended up subclassing Xamarin.Forms.ScrollView and adding a custom ScrollView renderer to operate on that subclass.
The native control on UWP for the ScrollView is the ScrollViewer.
This has ComputedVerticalScrollBarVisibility and ComputedHorizontalScrollBarVisibility properties, which I compare with Visibility.Visible.
I then set boolean properties in the ScrollView subclass to indicate whether the scroll bars are visible or not.
Via a PropertyChanged event, the page containing the subclassed ScrollView then dynamically changes the Margin of the View that is the Content of the ScrollView subclass.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies