menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AutoScroller - MAUI 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
    Namespace: Syncfusion.Maui.ListView
    Assembly: Syncfusion.Maui.ListView.dll
    Syntax
    public class AutoScroller : Object

    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 enable auto-scrolling when the item is dragged outside the top and bottom bound regions (for vertical orientation) or left and right bound regions (for horizontal orientation) of the SfListView.

    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 scrolling interval at which the ListView will automatically scroll while an item is being dragged.

    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 a value indicating whether auto scrolling should be enabled when the dragged items reach the view bounds, such as the top and bottom regions for vertical orientation, or the left and right regions for horizontal orientation.

    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;
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved