GestureRecognizer.Dragging GestureRecognizer.Dragging GestureRecognizer.Dragging GestureRecognizer.Dragging GestureRecognizer.Dragging Event

Definition

Occurs when a user performs a slide or swipe gesture with a mouse or pen/stylus (single contact).

public : event TypedEventHandler<GestureRecognizer, DraggingEventArgs> Dragging
// Register
event_token Dragging(TypedEventHandler<GestureRecognizer, DraggingEventArgs> const& handler) const;

// Revoke with event_token
void Dragging(event_token const& cookie) const;

// Revoke with event_revoker
Dragging_revoker Dragging(auto_revoke_t, TypedEventHandler<GestureRecognizer, DraggingEventArgs> const& handler) const;
public event TypedEventHandler<GestureRecognizer, DraggingEventArgs> Dragging
Public Event Dragging As TypedEventHandler (Of GestureRecognizer, DraggingEventArgs)
function onDragging(eventArgs){/* Your code */}


gestureRecognizer.addEventListener("dragging", onDragging);
gestureRecognizer.removeEventListener("dragging", onDragging);

Remarks

Drag must be set in the GestureSettings property to support Dragging.

See also