Skip to main content

SwipeGestureEndedEventArgs Class

Definition

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

Provides data for the swipe gesture ended event.

public class SwipeGestureEndedEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> SwipeGestureEndedEventArgs

Constructors

NameDescription
SwipeGestureEndedEventArgsInitializes a new instance of the Avalonia.Input.SwipeGestureEndedEventArgs class.

SwipeGestureEndedEventArgs Constructor

Initializes a new instance of the Avalonia.Input.SwipeGestureEndedEventArgs class.

public SwipeGestureEndedEventArgs(int id, Avalonia.Vector velocity)

Parameters

id int

The unique identifier for this gesture.

velocity Avalonia.Vector

The swipe velocity at release in pixels per second.

Properties

NameDescription
IdGets the unique identifier for this gesture sequence.
VelocityGets the swipe velocity at release in pixels per second.
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.

Id Property

Gets the unique identifier for this gesture sequence.

public int Id { get; set; }

Velocity Property

Gets the swipe velocity at release in pixels per second.

public Avalonia.Vector Velocity { get; set; }