Expand Minimize

GestureRecognizer.Dragging | dragging event

Applies to Windows and Windows Phone

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

Syntax


function onDragging(eventArgs) { /* Your code */ }
 
// addEventListener syntax
gestureRecognizer.addEventListener("dragging", onDragging);
gestureRecognizer.removeEventListener("dragging", onDragging);
 
- or -

gestureRecognizer.ondragging = onDragging;


Event information

Delegate TypedEventHandler<GestureRecognizer, DraggingEventArgs>

Remarks

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Input
Windows::UI::Input [C++]

Metadata

Windows.winmd

See also

GestureRecognizer
TypedEventHandler
DraggingEventArgs

 

 

Show:
© 2014 Microsoft. All rights reserved.