Struct DragInfo
Describes one step of a drag.
public readonly record struct DragInfo : IEquatable<DragInfo>
- Implements
- Inherited Members
- Extension Methods
Constructors
DragInfo(PointerKind, Point, Point, Vector2, Vector2, bool)
Describes one step of a drag.
public DragInfo(PointerKind Kind, Point Start, Point Position, Vector2 Delta, Vector2 Velocity, bool StartedFromHold = false)
Parameters
KindPointerKindThe pointer that drags.
StartPointThe position where the pointer was pressed, in physical pixels.
PositionPointThe current pointer position, in physical pixels.
DeltaVector2The movement since the previous drag event, in physical pixels.
VelocityVector2The release velocity in physical pixels per second - set on DragCompleted only, otherwise Zero.
StartedFromHoldbooltrue when the drag grew out of a press that had already raised Held (press-and-hold, then move) - the touch gesture that picks up drag-and-drop sources.
Properties
Delta
The movement since the previous drag event, in physical pixels.
public Vector2 Delta { get; init; }
Property Value
Kind
The pointer that drags.
public PointerKind Kind { get; init; }
Property Value
Position
The current pointer position, in physical pixels.
public Point Position { get; init; }
Property Value
Start
The position where the pointer was pressed, in physical pixels.
public Point Start { get; init; }
Property Value
StartedFromHold
true when the drag grew out of a press that had already raised Held (press-and-hold, then move) - the touch gesture that picks up drag-and-drop sources.
public bool StartedFromHold { get; init; }
Property Value
Velocity
The release velocity in physical pixels per second - set on DragCompleted only, otherwise Zero.
public Vector2 Velocity { get; init; }