Table of Contents

Class ScrollGestureRecognizer

Namespace
Avalonia.Input.GestureRecognizers
Assembly
Avalonia.Base.dll
public class ScrollGestureRecognizer : GestureRecognizer, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed
Inheritance
ScrollGestureRecognizer
Implements
Inherited Members
Extension Methods

Constructors

ScrollGestureRecognizer()

public ScrollGestureRecognizer()

Fields

CanHorizontallyScrollProperty

Defines the CanHorizontallyScroll property.

public static readonly DirectProperty<ScrollGestureRecognizer, bool> CanHorizontallyScrollProperty

Field Value

DirectProperty<ScrollGestureRecognizer, bool>

CanVerticallyScrollProperty

Defines the CanVerticallyScroll property.

public static readonly DirectProperty<ScrollGestureRecognizer, bool> CanVerticallyScrollProperty

Field Value

DirectProperty<ScrollGestureRecognizer, bool>

InertialResistance

public const double InertialResistance = 0.15

Field Value

double

IsScrollInertiaEnabledProperty

Defines the IsScrollInertiaEnabled property.

public static readonly DirectProperty<ScrollGestureRecognizer, bool> IsScrollInertiaEnabledProperty

Field Value

DirectProperty<ScrollGestureRecognizer, bool>

ScrollStartDistanceProperty

Defines the ScrollStartDistance property.

public static readonly DirectProperty<ScrollGestureRecognizer, int> ScrollStartDistanceProperty

Field Value

DirectProperty<ScrollGestureRecognizer, int>

Properties

CanHorizontallyScroll

Gets or sets a value indicating whether the content can be scrolled horizontally.

public bool CanHorizontallyScroll { get; set; }

Property Value

bool

CanVerticallyScroll

Gets or sets a value indicating whether the content can be scrolled vertically.

public bool CanVerticallyScroll { get; set; }

Property Value

bool

IsScrollInertiaEnabled

Gets or sets whether the gesture should include inertia in it's behavior.

public bool IsScrollInertiaEnabled { get; set; }

Property Value

bool

ScrollStartDistance

Gets or sets a value indicating the distance the pointer moves before scrolling is started

public int ScrollStartDistance { get; set; }

Property Value

int

Methods

PointerCaptureLost(IPointer)

protected override void PointerCaptureLost(IPointer pointer)

Parameters

pointer IPointer

PointerMoved(PointerEventArgs)

protected override void PointerMoved(PointerEventArgs e)

Parameters

e PointerEventArgs

PointerPressed(PointerPressedEventArgs)

protected override void PointerPressed(PointerPressedEventArgs e)

Parameters

e PointerPressedEventArgs

PointerReleased(PointerReleasedEventArgs)

protected override void PointerReleased(PointerReleasedEventArgs e)

Parameters

e PointerReleasedEventArgs