Class
GestureRecognizerBase

A specific gesture recognizer. The inheritors of this class should handle the basic touch events and translate them to specific gesture related events. A recognizer can be responsible for a family of gestures (for example Tap, TapAndHold, TapHoldAndRelease). A recognizer can be responsible for a family of events (for example SwipeStarted, Swipe, SwipeFinished).

Definition

Namespace:Telerik.Windows.Input.Touch

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public abstract class GestureRecognizerBase

Inheritance: objectGestureRecognizerBase

Derived Classes: DragGestureRecognizerPinchGestureRecognizerSwipeGestureRecognizerTapGestureRecognizer

Constructors

GestureRecognizerBase(UIElement)

Initializes a new instance of the GestureRecognizerBase class.

Declaration

cs-api-definition
protected GestureRecognizerBase(UIElement element)

Parameters

element

UIElement

Properties

Element

The element this recognizer is assigned to.

Declaration

cs-api-definition
public UIElement Element { get; }

Property Value

UIElement

HasGestureHandlers

Gets or sets a value indicating whether there are any attached handlers for the specific gesture.

Declaration

cs-api-definition
public bool HasGestureHandlers { get; set; }

Property Value

bool

Methods

OnCeaseGesturesRequested()

When this method is called, any gestures activated by this recognizer should be ceased. This method is invoked when the CeaseGestures method of the TouchManager is called with an argument either null or a root of the element this recognizer is assigned to.

Declaration

cs-api-definition
public virtual void OnCeaseGesturesRequested()

OnTouchDown(GestureRecognizerEventArgs)

Invoked when a TouchDown occurs inside this element.

Declaration

cs-api-definition
public abstract void OnTouchDown(GestureRecognizerEventArgs args)

Parameters

args

GestureRecognizerEventArgs

OnTouchEnter(GestureRecognizerEventArgs)

Invoked when a TouchEnter occurs inside this element.

Declaration

cs-api-definition
public abstract void OnTouchEnter(GestureRecognizerEventArgs args)

Parameters

args

GestureRecognizerEventArgs

OnTouchLeave(GestureRecognizerEventArgs)

Invoked when a TouchLeave occurs inside this element.

Declaration

cs-api-definition
public abstract void OnTouchLeave(GestureRecognizerEventArgs args)

Parameters

args

GestureRecognizerEventArgs

OnTouchMove(GestureRecognizerEventArgs)

Invoked when a TouchMove occurs inside this element.

Declaration

cs-api-definition
public abstract void OnTouchMove(GestureRecognizerEventArgs args)

Parameters

args

GestureRecognizerEventArgs

OnTouchUp(GestureRecognizerEventArgs)

Invoked when a TouchUp occurs inside this element.

Declaration

cs-api-definition
public abstract void OnTouchUp(GestureRecognizerEventArgs args)

Parameters

args

GestureRecognizerEventArgs