Xamarin.Forms.ScrollView Class
An element capable of scrolling if its Content requires.

See Also: ScrollView Members

Syntax

[Xamarin.Forms.ContentProperty("Content")]
public class ScrollView : Layout

Remarks

The following example shows the creation of a ScrollView with a large Xamarin.Forms.StackLayout in it.

C# Example

StackLayout stack;
var scrollview = new ScrollView {
  Content = new StackLayout {
    Padding = new Thickness (20),
  },
};

for (var i=0; i<100; i++)
  stack.Children.Add (new Button { Text = "Foo"});
              
Note: Application developers should not nest one Xamarin.Forms.ScrollView within another. Additinoally, they should refrain from nesting them other elements that can scroll, such as Xamarin.Forms.WebView.

The Xamarin.Forms.ScrollView class has the following XAML properties:

PropertyValue
Content

Markup that specifies a Xamarin.Forms.View to display in the Xamarin.Forms.ScrollView.

Orientation

Horizontal or Vertical, to indicate the scroll direction.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.2.3.0, 1.3.0.0