menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AutoScroller - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AutoScroller

    The AutoScroller class contains the auto scroll information of SfListView when drag and drop is enabled.

    Inheritance
    System.Object
    AutoScroller
    Implements
    System.IDisposable
    Namespace: Syncfusion.ListView.XForms
    Assembly: Syncfusion.SfListView.XForms.dll
    Syntax
    public class AutoScroller : Object, IDisposable

    Constructors

    AutoScroller(SfListView)

    Initializes a new instance of the AutoScroller class.

    Declaration
    public AutoScroller(SfListView listView)
    Parameters
    Type Name Description
    SfListView listView

    Indicates the instance of SfListView.

    Properties

    AllowOutsideScroll

    Gets or sets a value indicating whether to auto scroll when the item is dragged outside the SfListView's top and bottom bound regions (for vertical orientation), and left and right bound regions (for horizontal orientation).

    Declaration
    public bool AllowOutsideScroll { get; set; }
    Property Value
    Type
    System.Boolean
    Examples
    SfListView listView = new SfListView();
    listView.DragStartMode = DragStartMode.OnHold;
    this.listView.AutoScroller.AllowOutsideScroll = true;

    Interval

    Gets or sets the value indicating the auto scrolling process while dragging the items.

    Declaration
    public TimeSpan Interval { get; set; }
    Property Value
    Type
    System.TimeSpan
    Examples
    SfListView listView = new SfListView();
    listView.DragStartMode = DragStartMode.OnHold;
    this.listView.AutoScroller.Interval = new TimeSpan(0, 0, 0, 0, 200);

    ScrollMargin

    Gets or sets the value indicating that the auto scrolling should be enabled if the value reaches the view bounds i.e. top and bottom bound regions (for vertical orientation), and left and right bound regions (for horizontal orientation) while dragging the items.

    Declaration
    public double ScrollMargin { get; set; }
    Property Value
    Type
    System.Double
    Examples
    SfListView listView = new SfListView();
    listView.DragStartMode = DragStartMode.OnHold;
    this.listView.AutoScroller.ScrollMargin = 20;

    Methods

    Dispose()

    Disposes all allocated resources.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Disposes the instances, if the parameter is set to true.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    If true, dispose all the allocated objects.

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved