C# Класс Blake.NUI.WPF.Gestures.HoldGestureEngine

Gesture engine that detects the "Hold" gesture. This gesture is defined as a touch down and hold for a (configurable) amount of time. Releasing the touch point or moving it too far before the timeout has been reached will abort the gesture.
See IGestureEngine documentation for details about the behavior.
Наследование: IGestureEngine
Показать файл Открыть проект

Открытые методы

Метод Описание
AbortGesture ( ) : void
HoldGestureEngine ( System.TimeSpan timeout, double maxMovement ) : System

Initializes a new instance of the HoldGestureEngine class.

TrackTouchDown ( Point position, System.DateTime timestamp ) : void
TrackTouchMove ( Point position, System.DateTime timestamp ) : void
TrackTouchUp ( Point position, System.DateTime timestamp ) : void

Приватные методы

Метод Описание
OnGestureAborted ( ) : void
OnGestureCompleted ( ) : void
OnGestureStarted ( ) : void
ProcessStatus ( ) : void

Описание методов

AbortGesture() публичный Метод

public AbortGesture ( ) : void
Результат void

HoldGestureEngine() публичный Метод

Initializes a new instance of the HoldGestureEngine class.
public HoldGestureEngine ( System.TimeSpan timeout, double maxMovement ) : System
timeout System.TimeSpan The time that the user must keep the touch pressed in order for it to be considered a hold gesture.
maxMovement double The maximum movement the user is allowed to move the touch point in order for it to still be considered a hold gesture. Unit is WPF device independent pixels
Результат System

TrackTouchDown() публичный Метод

public TrackTouchDown ( Point position, System.DateTime timestamp ) : void
position Point
timestamp System.DateTime
Результат void

TrackTouchMove() публичный Метод

public TrackTouchMove ( Point position, System.DateTime timestamp ) : void
position Point
timestamp System.DateTime
Результат void

TrackTouchUp() публичный Метод

public TrackTouchUp ( Point position, System.DateTime timestamp ) : void
position Point
timestamp System.DateTime
Результат void