ClassGestureManager
A utility class that exposes methods that enable gesture management.
Definition
Namespace:Telerik.Windows.Input.Touch
Assembly:Telerik.Windows.Controls.dll
Syntax:
public static class GestureManager
Inheritance: objectGestureManager
Methods
ActivateGesture(UIElement, string, Action)
Activates the gesture for this element. If there is an active gesture, it is first forcibly deactivated.
Declaration
public static GestureDeactivationToken ActivateGesture(UIElement element, string gestureName, Action forcedFinish)
Parameters
element
UIElement
The UI element.
gestureName
The gesture name.
forcedFinish
The callback that is executed when the gesture is forcibly deactivated.
Returns
CanActivateGesture(UIElement, string)
Gets a value indicating whether the candidate gesture can be activated. The gesture cannot be activated if there is already an active gesture and the transition is not allowed.
DeregisterGestureRecognizerFactory(IGestureRecognizerFactory)
Deregisters a gesture recognizer factory.
Declaration
public static void DeregisterGestureRecognizerFactory(IGestureRecognizerFactory gestureFactory)
Parameters
gestureFactory
GetActiveGesture(UIElement)
Gets the name pf the active gesture for this element.
Declaration
public static string GetActiveGesture(UIElement element)
Parameters
element
UIElement
Returns
GetOrCreateGestureRecognizer<T>(UIElement)
Gets the gesture recognizer for this element.
Declaration
public static T GetOrCreateGestureRecognizer<T>(UIElement element) where T : GestureRecognizerBase
Parameters
element
UIElement
Returns
T
GetRegisteredGestureRecognizerFactories()
Gets the registered gesture recognizer factories.
Declaration
public static IList<IGestureRecognizerFactory> GetRegisteredGestureRecognizerFactories()
Returns
GetRegisteredGestureTransitions(string)
Gets the allowed gesture transitions for this gesture.
Declaration
public static IEnumerable<string> GetRegisteredGestureTransitions(string gestureName)
Parameters
gestureName
Returns
IsGestureTransitionAllowed(string, string)
Gets a value indicating whether a transition is allowed.
RegisterGestureRecognizerFactory(IGestureRecognizerFactory)
Registers a gesture recognizer factory.
Declaration
public static void RegisterGestureRecognizerFactory(IGestureRecognizerFactory gestureFactory)
Parameters
gestureFactory
RegisterGestureTransitions(string, IEnumerable<string>)
Registers the allowed transitions for this gesture.
Declaration
public static void RegisterGestureTransitions(string gestureName, IEnumerable<string> transitions)
Parameters
gestureName
transitions