New to Telerik UI for .NET MAUIStart a free 30-day trial

Provides arguments for scroll operations, including target position and animation settings. This class contains the necessary information to perform programmatic scrolling in scroll view controls.

Definition

Namespace:Telerik.Maui.ScrollView

Assembly:Telerik.Maui.Core.dll

Syntax:

C#
public class ScrollToArgs

Inheritance: objectScrollToArgs

Constructors

Initializes a new instance of the ScrollToArgs class with the specified scroll positions and animation setting.

C#
public ScrollToArgs(double scrollX, double scrollY, bool useAnimation)
Parameters:scrollXdouble

The horizontal scroll position to scroll to.

scrollYdouble

The vertical scroll position to scroll to.

useAnimationbool

A value indicating whether the scroll operation should be animated.

Fields

The horizontal scroll position to scroll to.

C#
public readonly double ScrollX

The vertical scroll position to scroll to.

C#
public readonly double ScrollY

Indicates whether the scroll operation should be animated.

C#
public readonly bool UseAnimation