Class SKDragGestureEventArgs
Provides data for drag gesture lifecycle events (DragStarted, DragUpdated, and DragEnded).
public class SKDragGestureEventArgs : EventArgs
- Inheritance
-
SKDragGestureEventArgs
- Inherited Members
Remarks
Drag events provide a higher-level lifecycle built on top of the underlying pan gesture. The lifecycle is:
- DragStarted: Fired once when the first pan movement occurs.
- DragUpdated: Fired continuously as the touch moves. Delta contains the incremental displacement from the previous position.
- DragEnded: Fired once when all touches are released.
Set Handled to true during DragStarted or DragUpdated to prevent the tracker from applying its default pan offset behavior.
DragStarted DragUpdated DragEnded SKPanGestureEventArgsConstructors
- SKDragGestureEventArgs(SKPoint, SKPoint)
Initializes a new instance of the SKDragGestureEventArgs class.
Properties
- Delta
Gets the displacement from PreviousLocation to Location.
- Handled
Gets or sets a value indicating whether the event has been handled.
- Location
Gets the current touch location in view coordinates.
- PreviousLocation
Gets the previous touch location in view coordinates.