TouchManager
Manages touch input for the application, providing methods to process touch events and gestures.
Definition
Namespace:Telerik.Windows.Input.Touch
Assembly:Telerik.Windows.Controls.dll
Syntax:
public static class TouchManager
Inheritance: objectTouchManager
Fields
DragStartTriggerProperty
DependencyProperty
Identifies the DragStartTrigger dependency property.
public static readonly DependencyProperty DragStartTriggerProperty
ScrollViewerSwipeModeProperty
DependencyProperty
Identifies the ScrollViewerSwipeMode dependency property.
public static readonly DependencyProperty ScrollViewerSwipeModeProperty
ShouldSuspendMousePromotionProperty
DependencyProperty
Identifies the ShouldSuspendMousePromotion dependency property.
public static readonly DependencyProperty ShouldSuspendMousePromotionProperty
TouchModeProperty
DependencyProperty
Identifies the TouchMode dependency property.
public static readonly DependencyProperty TouchModeProperty
Properties
Gets or sets the minimum distance a touch point has to move before the action is considered a drag.
public static double DragStartDistance { get; set; }
Gets or sets a value indicating whether the TouchManager hooks to any input events. Should be set at the start of the application. Once set to false it cannot be set back to true.
public static bool IsEnabled { get; set; }
Gets or sets a value indicating whether the TouchManager responds to any touch events.
public static bool IsTouchEnabled { get; set; }
Gets or sets the time, in milliseconds, that can elapse between two successive tap actions for the TouchManager to consider them multiple-taps.
public static int MultiTapTime { get; set; }
Gets or sets the maximum distance between two successive tap actions for the TouchManager to consider them multiple-taps.
public static double MultiTapVicinity { get; set; }
Gets or sets the minimum distance a touch point has to move before the action is considered a pinch.
public static double PinchStartDistance { get; set; }
Gets or sets the duration of the swipe inertia, in milliseconds.
public static int SwipeInertiaDuration { get; set; }
Gets or sets the minimum distance a touch point has to move before the action is considered a swipe.
public static double SwipeStartDistance { get; set; }
Gets or sets the time, in milliseconds, that can elapse between a touch down and a touch up for the action to be considered a tap.
public static int TapTime { get; set; }
Gets or sets the maximum distance a touch point can move for the action to be considered a tap.
public static double TapVicinity { get; set; }
Methods
Adds a handler for the Drag event.
public static void AddDragEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the DragFinished event.
public static void AddDragFinishedEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the DragStarted event. If this event is not handled, the Drag operation will finish.
public static void AddDragStartedEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the LostTouchCapture event.
public static void AddLostTouchCaptureHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the Pinch event.
public static void AddPinchEventHandler(UIElement element, PinchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the PinchFinished event.
public static void AddPinchFinishedEventHandler(UIElement element, PinchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the PinchStarted event.
public static void AddPinchStartedEventHandler(UIElement element, PinchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the Swipe event.
public static void AddSwipeEventHandler(UIElement element, SwipeEventHandler handler, bool handledEventsToo = false)
Adds a handler for the SwipeFinished event.
public static void AddSwipeFinishedEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the SwipeInertia event.
public static void AddSwipeInertiaEventHandler(UIElement element, SwipeInertiaEventHandler handler, bool handledEventsToo = false)
Adds a handler for the SwipeInertiaFinished event.
public static void AddSwipeInertiaFinishedEventHandler(UIElement element, RadRoutedEventHandler handler, bool handledEventsToo = false)
Adds a handler for the SwipeInertiaStarted event.
public static void AddSwipeInertiaStartedEventHandler(UIElement element, RadRoutedEventHandler handler, bool handledEventsToo = false)
Adds a handler for the SwipeStarted event.
public static void AddSwipeStartedEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the TapAndHold event.
public static void AddTapAndHoldEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the Tap event.
public static void AddTapEventHandler(UIElement element, TapEventHandler handler, bool handledEventsToo = false)
Adds a handler for the TapHoldAndRelease event.
public static void AddTapHoldAndReleaseEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the TouchDown event.
public static void AddTouchDownEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the TouchEnter event.
public static void AddTouchEnterEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the TouchLeave event.
public static void AddTouchLeaveEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the TouchMove event.
public static void AddTouchMoveEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Adds a handler for the TouchUp event.
public static void AddTouchUpEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Attempts to capture the touch device.
public static bool CaptureTouch(UIElement element, TouchDevice touchDevice)
Ceases the execution of any active gestures for elements within this root element. When root is null, all active gestures cease.
public static void CeaseGestures(FrameworkElement root)
Gets the element that has captured the touch device.
public static UIElement GetCaptured(TouchDevice touchDevice)
UIElement
Gets a value indicating which action starts a drag operation.
public static TouchDragStartTrigger GetDragStartTrigger(DependencyObject obj)
Gets the scroll viewer swipe mode.
public static ScrollViewerSwipeMode GetScrollViewerSwipeMode(DependencyObject obj)
Gets a value indicating whether mouse events should be suspended during touch input.
public static bool GetShouldSuspendMousePromotion(DependencyObject obj)
Gets a value indicating the touch mode of the object.
public static TouchMode GetTouchMode(DependencyObject obj)
Releases the touch capture.
public static bool ReleaseTouchCapture(UIElement element, TouchDevice touchDevice)
Removes the handler for the Drag event.
public static void RemoveDragEventHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the DragFinished event.
public static void RemoveDragFinishedEventHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the DragStarted event.
public static void RemoveDragStartedEventHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the LostTouchCapture event.
public static void RemoveLostTouchCaptureHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the Pinch event.
public static void RemovePinchEventHandler(UIElement element, PinchEventHandler handler)
Removes the handler for the PinchFinished event.
public static void RemovePinchFinishedEventHandler(UIElement element, PinchEventHandler handler)
Removes the handler for the PinchStarted event.
public static void RemovePinchStartedEventHandler(UIElement element, PinchEventHandler handler)
Removes the handler for the Swipe event.
public static void RemoveSwipeEventHandler(UIElement element, SwipeEventHandler handler)
Removes the handler for the SwipeFinished event.
public static void RemoveSwipeFinishedEventHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the SwipeInertia event.
public static void RemoveSwipeInertiaEventHandler(UIElement element, SwipeInertiaEventHandler handler)
Removes the handler for the SwipeInertiaFinished event.
public static void RemoveSwipeInertiaFinishedEventHandler(UIElement element, RadRoutedEventHandler handler)
Removes the handler for the SwipeInertiaStarted event.
public static void RemoveSwipeInertiaStartedEventHandler(UIElement element, RadRoutedEventHandler handler)
Removes the handler for the SwipeStarted event.
public static void RemoveSwipeStartedEventHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the TapAndHold event.
public static void RemoveTapAndHoldEventHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the Tap event.
public static void RemoveTapEventHandler(UIElement element, TapEventHandler handler)
Removes the handler for the TapHoldAndRelease event.
public static void RemoveTapHoldAndReleaseEventHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the TouchDown event.
public static void RemoveTouchDownEventHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the TouchEnter event.
public static void RemoveTouchEnterEventHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the TouchLeave event.
public static void RemoveTouchLeaveEventHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the TouchMove event.
public static void RemoveTouchMoveEventHandler(UIElement element, TouchEventHandler handler)
Removes the handler for the TouchUp event.
public static void RemoveTouchUpEventHandler(UIElement element, TouchEventHandler handler)
Sets a value indicating which action starts a drag operation.
public static void SetDragStartTrigger(DependencyObject obj, TouchDragStartTrigger value)
Sets the scroll viewer swipe mode.
public static void SetScrollViewerSwipeMode(DependencyObject obj, ScrollViewerSwipeMode value)
Sets a value indicating whether mouse events should be suspended during touch input.
public static void SetShouldSuspendMousePromotion(DependencyObject obj, bool value)
Sets a value indicating the touch mode of the object.
public static void SetTouchMode(DependencyObject obj, TouchMode value)