This repository was archived by the owner on May 1, 2024. It is now read-only.

Description
Hi Xamarin Team
Description
We have found a strange issue in XF- Android platform: The 'HorizontalScrollBarEnabled' property doesn't work in latest Xamarin Forms version (v 3.1.0.583944). In Write render the ScrollView to set this property as false is not reflecting in the view.
Here we have loaded ScrollView (Horizontal orientation) in StackLayout with labels
Steps to Reproduce
- Run the attached sample.
- Scroll the views, ScrollBar is not hide.
- If ScrollView is Horizontal orientation it is working fine.
We are using following approach in rendering
[assembly: ExportRenderer(typeof(ScrollViewExt), typeof(ExtendedScrollViewRenderer))]
namespace ScrollView_Renderer.Droid
{
public class ExtendedScrollViewRenderer : ScrollViewRenderer
{
public ExtendedScrollViewRenderer()
{
}
protected override void OnElementChanged(VisualElementChangedEventArgs e)
{
base.OnElementChanged(e);
this.HorizontalScrollBarEnabled = false;
this.VerticalScrollBarEnabled = false;
}
}
}
Expected Behavior
ScrollBar is hide when loading the views, and scrolling the views
Actual Behavior
ScrollBar is not hide when loading the views, and scrolling the views
Basic Information
- Version with issue: Xamarin.Forms v- 3.1.0.583944
- IDE: Visual Studio 2017 version 15.7.4
- Platform Target Frameworks:
-Xamarin.Android SDK 8.1.5.0 (HEAD/75f8c6838)
-Xamarin.Android Reference Assemblies and MSBuild support.
-Xamarin.iOS and Xamarin.Mac SDK 11.6.1.4 (db807ec)
- Android Support Library Version: 27.0.2.1
- Nuget Packages: Xamarin.Forms -v- 3.1.0.583944
- Affected Devices: All Android Devices
Sample File
ScrollView_Renderer.zip