DragGestureDetector Class Reference

Drag detector. More...

Inheritance diagram for DragGestureDetector:
GestureDetector

List of all members.

Public Member Functions

 DragGestureDetector ()
 Constructor.

Protected Member Functions

internal override
GestureDetectorResponse 
OnTouchEvent (TouchEventCollection touchEvents)
 Distributes a touch event.
internal override void OnResetState ()
 Resets the state of gesture analysis.

Properties

float MaxDistance [get, set]
 Obtains and sets the maximum travel distance.
DragDirection Direction [get, set]
 Obtains and sets the determination direction of the drag gesture.

Events

EventHandler< DragEventArgsDragDetected
 Drag event handler.
EventHandler< DragEventArgsDragStartDetected
 Drag start event handler.
EventHandler< DragEventArgsDragEndDetected
 Drag end event handler.

Detailed Description

Drag detector.


Member Function Documentation

internal override GestureDetectorResponse OnTouchEvent ( TouchEventCollection  touchEvents) [protected, virtual]

Distributes a touch event.

Parameters:
touchEventsTouch event
Returns:
Response to touch event distribution

Implements GestureDetector.


Event Documentation

EventHandler<DragEventArgs> DragDetected

Drag event handler.

The initial DragDetected event is issued from the next frame of the DragStartDetected event. When dragging is started, each frame is issued regardless of travel distance until ended either by touching up or the gesture detector.