Show / Hide Table of Contents

    Class ScrollView

    The ScrollView is a container that holds and clips a single object and allows you to scroll across it.

    Inheritance
    System.Object
    ScrollView
    Namespace: Tizen.UIExtensions.ElmSharp
    Assembly: Tizen.UIExtensions.ElmSharp.dll
    Syntax
    public class ScrollView : ElmSharp.Scroller

    Constructors

    ScrollView()

    Creates and initializes a new instance of the ScrollView class.

    Declaration
    protected ScrollView()

    ScrollView(EvasObject)

    Creates and initializes a new instance of the ScrollView class.

    Declaration
    public ScrollView(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent

    The to which the new Scroller will be attached as a child.

    Properties

    HorizontalScrollBarVisibility

    Gets or sets a value that controls when the horizontal scroll bar is visible.

    Declaration
    public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
    Property Value
    Type Description
    ScrollBarVisibility

    ScrollBound

    Gets the current scroll bound.

    Declaration
    public Rect ScrollBound { get; }
    Property Value
    Type Description
    Rect

    ScrollOrientation

    Gets or sets the scrolling direction of the ScrollView.

    Declaration
    public ScrollOrientation ScrollOrientation { get; set; }
    Property Value
    Type Description
    ScrollOrientation

    VerticalScrollBarVisibility

    Gets or sets a value that controls when the vertical scroll bar is visible.

    Declaration
    public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
    Property Value
    Type Description
    ScrollBarVisibility

    Methods

    OnRealized()

    Declaration
    protected override void OnRealized()

    ScrollToAsync(Int32, Int32, Boolean)

    Scroll to page index

    Declaration
    public Task ScrollToAsync(int horizontalPageIndex, int verticalPageIndex, bool animated)
    Parameters
    Type Name Description
    System.Int32 horizontalPageIndex

    The index of horizontal page to scroll

    System.Int32 verticalPageIndex

    The index of vertical page to scroll

    System.Boolean animated
    Returns
    Type Description
    System.Threading.Tasks.Task

    ScrollToAsync(Rect, Boolean)

    Scroll to position

    Declaration
    public Task ScrollToAsync(Rect rect, bool animated)
    Parameters
    Type Name Description
    Rect rect

    The area of the finished scroll

    System.Boolean animated

    Whether or not to animate the scroll.

    Returns
    Type Description
    System.Threading.Tasks.Task

    Returns a task that scrolls the scroll view to a position asynchronously.

    SetContentSize(Int32, Int32)

    Sets the size of the Content.

    Declaration
    public void SetContentSize(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width
    System.Int32 height

    SetScrollCanvas(EvasObject)

    Set a content to display on scroll view

    Declaration
    public void SetScrollCanvas(EvasObject content)
    Parameters
    Type Name Description
    EvasObject content
    Back to top Copyright © 2021 Samsung
    Generated by DocFX