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
CanVerticallyScrollProperty
Defines the CanVerticallyScroll property.
public static readonly DirectProperty<ScrollGestureRecognizer, bool> CanVerticallyScrollProperty
Field Value
InertialResistance
public const double InertialResistance = 0.15
Field Value
IsScrollInertiaEnabledProperty
Defines the IsScrollInertiaEnabled property.
public static readonly DirectProperty<ScrollGestureRecognizer, bool> IsScrollInertiaEnabledProperty
Field Value
ScrollStartDistanceProperty
Defines the ScrollStartDistance property.
public static readonly DirectProperty<ScrollGestureRecognizer, int> ScrollStartDistanceProperty
Field Value
Properties
CanHorizontallyScroll
Gets or sets a value indicating whether the content can be scrolled horizontally.
public bool CanHorizontallyScroll { get; set; }
Property Value
CanVerticallyScroll
Gets or sets a value indicating whether the content can be scrolled vertically.
public bool CanVerticallyScroll { get; set; }
Property Value
IsScrollInertiaEnabled
Gets or sets whether the gesture should include inertia in it's behavior.
public bool IsScrollInertiaEnabled { get; set; }
Property Value
ScrollStartDistance
Gets or sets a value indicating the distance the pointer moves before scrolling is started
public int ScrollStartDistance { get; set; }
Property Value
Methods
PointerCaptureLost(IPointer)
protected override void PointerCaptureLost(IPointer pointer)
Parameters
pointer
IPointer
PointerMoved(PointerEventArgs)
protected override void PointerMoved(PointerEventArgs e)
Parameters
PointerPressed(PointerPressedEventArgs)
protected override void PointerPressed(PointerPressedEventArgs e)
Parameters
PointerReleased(PointerReleasedEventArgs)
protected override void PointerReleased(PointerReleasedEventArgs e)