SwipeGestureEventArgs Class
Definition
Provides data for the Avalonia.Input.InputElement.SwipeGestureEvent routed event.
public class SwipeGestureEventArgs
Constructors
| Name | Description |
|---|---|
| SwipeGestureEventArgs | Initializes 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
| Name | Description |
|---|---|
| Delta | Gets the total translation vector of the swipe gesture. |
| Id | Gets the unique identifier for this swipe gesture instance. |
| StartPoint | Gets the position, relative to the target element, where the swipe started. |
| SwipeDirection | Gets the direction of the swipe gesture. |
| Handled | Gets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs. |
| Route | Gets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs. |
| RoutedEvent | Gets or sets the routed event associated with these event args. Inherited from RoutedEventArgs. |
| Source | Gets 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; }