Skip to main content

SwipeGestureEventArgs Class

Definition

Namespace:Avalonia.Input
Assembly:Avalonia.Base
Package:Avalonia

Provides data for the Avalonia.Input.InputElement.SwipeGestureEvent routed event.

public class SwipeGestureEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> SwipeGestureEventArgs

Constructors

NameDescription
SwipeGestureEventArgsInitializes a new instance of Avalonia.Input.SwipeGestureEventArgs.

SwipeGestureEventArgs Constructor

Initializes a new instance of Avalonia.Input.SwipeGestureEventArgs.

public SwipeGestureEventArgs(int id, Avalonia.Input.SwipeDirection direction, Avalonia.Vector delta, Avalonia.Point startPoint)

Parameters

id int

direction Avalonia.Input.SwipeDirection

delta Avalonia.Vector

startPoint Avalonia.Point

Properties

NameDescription
DeltaGets the total translation vector of the swipe gesture.
IdGets the unique identifier for this swipe gesture instance.
StartPointGets the position, relative to the target element, where the swipe started.
SwipeDirectionGets the direction of the swipe gesture.
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
SourceGets or sets the source object that raised the routed event. Inherited from RoutedEventArgs.

Delta Property

Gets the total translation vector of the swipe gesture.

public Avalonia.Vector Delta { get; set; }

Id Property

Gets the unique identifier for this swipe gesture instance.

public int Id { get; set; }

StartPoint Property

Gets the position, relative to the target element, where the swipe started.

public Avalonia.Point StartPoint { get; set; }

SwipeDirection Property

Gets the direction of the swipe gesture.

public Avalonia.Input.SwipeDirection SwipeDirection { get; set; }