New to Telerik UI for WPFStart a free 30-day trial

A factory that creates gesture recognizers for UI elements.

Definition

Namespace:Telerik.Windows.Input.Touch

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public interface IGestureRecognizerFactory

Derived Classes: DragGestureRecognizerFactoryPinchGestureRecognizerFactorySwipeGestureRecognizerFactoryTapGestureRecognizerFactory

Properties

Gets the priority of the recognizers. A recognizer with a higher priority will receive the basic touch events (such as TouchEnter, TouchDown, etc.) before a recognizer with a lower priority.

C#
int Priority { get; }

Methods

Creates a recognizer dedicated to the UI element.

C#
GestureRecognizerBase CreateGestureRecognizer(UIElement element)
Parameters:elementUIElementReturns:

GestureRecognizerBase

When invoked, the factory should register the allowed gesture transitions. Use the RegisterGestureTransitions method of the GestureManager.

C#
void RegisterGestureTransitions()