Drag detector. More...
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< DragEventArgs > | DragDetected |
Drag event handler. | |
EventHandler< DragEventArgs > | DragStartDetected |
Drag start event handler. | |
EventHandler< DragEventArgs > | DragEndDetected |
Drag end event handler. |
Drag detector.
internal override GestureDetectorResponse OnTouchEvent | ( | TouchEventCollection | touchEvents | ) | [protected, virtual] |
Distributes a touch event.
touchEvents | Touch event |
Implements GestureDetector.
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.