Constructor SwipeGestureEventArgs
SwipeGestureEventArgs(MouseEventArgs, PointD, PointD)
Initializes a new instance of the SwipeGestureEventArgs class with the specified mouse event data and swipe coordinates.
public SwipeGestureEventArgs(MouseEventArgs mouseArgs, PointD initialPoint, PointD endPoint)
Parameters
mouseArgsMouseEventArgsThe mouse event data associated with the swipe gesture. Cannot be null.
initialPointPointDThe starting point of the swipe gesture, in device-independent coordinates.
endPointPointDThe ending point of the swipe gesture, in device-independent coordinates.
Remarks
The swipe direction and angle are calculated based on the provided initial and end points. This constructor is typically used when handling swipe gestures in custom input scenarios.
SwipeGestureEventArgs(MouseEventArgs, SwipeDirection, float)
Initializes a new instance of the SwipeGestureActivity.SwipeGestureEventArgs class.
public SwipeGestureEventArgs(MouseEventArgs mouseArgs, SwipeDirection direction, float angle)
Parameters
mouseArgsMouseEventArgsThe mouse event arguments.
directionSwipeDirectionThe direction of the swipe gesture.
anglefloatThe angle of the swipe gesture.