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