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

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:

C#
public static class TouchManager

Inheritance: objectTouchManager

Fields

DragStartTriggerProperty

DependencyProperty

Identifies the DragStartTrigger dependency property.

C#
public static readonly DependencyProperty DragStartTriggerProperty

Identifies the ScrollViewerSwipeMode dependency property.

C#
public static readonly DependencyProperty ScrollViewerSwipeModeProperty

Identifies the ShouldSuspendMousePromotion dependency property.

C#
public static readonly DependencyProperty ShouldSuspendMousePromotionProperty

TouchModeProperty

DependencyProperty

Identifies the TouchMode dependency property.

C#
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.

C#
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.

C#
public static bool IsEnabled { get; set; }

Gets or sets a value indicating whether the TouchManager responds to any touch events.

C#
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.

C#
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.

C#
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.

C#
public static double PinchStartDistance { get; set; }

Gets or sets the duration of the swipe inertia, in milliseconds.

C#
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.

C#
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.

C#
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.

C#
public static double TapVicinity { get; set; }

Methods

Adds a handler for the Drag event.

C#
public static void AddDragEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the DragFinished event.

C#
public static void AddDragFinishedEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the DragStarted event. If this event is not handled, the Drag operation will finish.

C#
public static void AddDragStartedEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the LostTouchCapture event.

C#
public static void AddLostTouchCaptureHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the Pinch event.

C#
public static void AddPinchEventHandler(UIElement element, PinchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerPinchEventHandlerhandledEventsToobool

Adds a handler for the PinchFinished event.

C#
public static void AddPinchFinishedEventHandler(UIElement element, PinchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerPinchEventHandlerhandledEventsToobool

Adds a handler for the PinchStarted event.

C#
public static void AddPinchStartedEventHandler(UIElement element, PinchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerPinchEventHandlerhandledEventsToobool

Adds a handler for the Swipe event.

C#
public static void AddSwipeEventHandler(UIElement element, SwipeEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerSwipeEventHandlerhandledEventsToobool

Adds a handler for the SwipeFinished event.

C#
public static void AddSwipeFinishedEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the SwipeInertia event.

C#
public static void AddSwipeInertiaEventHandler(UIElement element, SwipeInertiaEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerSwipeInertiaEventHandlerhandledEventsToobool

Adds a handler for the SwipeInertiaFinished event.

C#
public static void AddSwipeInertiaFinishedEventHandler(UIElement element, RadRoutedEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerRadRoutedEventHandlerhandledEventsToobool

Adds a handler for the SwipeInertiaStarted event.

C#
public static void AddSwipeInertiaStartedEventHandler(UIElement element, RadRoutedEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerRadRoutedEventHandlerhandledEventsToobool

Adds a handler for the SwipeStarted event.

C#
public static void AddSwipeStartedEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the TapAndHold event.

C#
public static void AddTapAndHoldEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the Tap event.

C#
public static void AddTapEventHandler(UIElement element, TapEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTapEventHandlerhandledEventsToobool

Adds a handler for the TapHoldAndRelease event.

C#
public static void AddTapHoldAndReleaseEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the TouchDown event.

C#
public static void AddTouchDownEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the TouchEnter event.

C#
public static void AddTouchEnterEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the TouchLeave event.

C#
public static void AddTouchLeaveEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the TouchMove event.

C#
public static void AddTouchMoveEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Adds a handler for the TouchUp event.

C#
public static void AddTouchUpEventHandler(UIElement element, TouchEventHandler handler, bool handledEventsToo = false)
Parameters:elementUIElementhandlerTouchEventHandlerhandledEventsToobool

Attempts to capture the touch device.

C#
public static bool CaptureTouch(UIElement element, TouchDevice touchDevice)
Parameters:elementUIElementtouchDeviceTouchDeviceReturns:

bool

Ceases the execution of any active gestures for elements within this root element. When root is null, all active gestures cease.

C#
public static void CeaseGestures(FrameworkElement root)
Parameters:rootFrameworkElement

Gets the element that has captured the touch device.

C#
public static UIElement GetCaptured(TouchDevice touchDevice)
Parameters:touchDeviceTouchDeviceReturns:

UIElement

Gets a value indicating which action starts a drag operation.

C#
public static TouchDragStartTrigger GetDragStartTrigger(DependencyObject obj)
Parameters:objDependencyObjectReturns:

TouchDragStartTrigger

Gets the scroll viewer swipe mode.

C#
public static ScrollViewerSwipeMode GetScrollViewerSwipeMode(DependencyObject obj)
Parameters:objDependencyObjectReturns:

ScrollViewerSwipeMode

Gets a value indicating whether mouse events should be suspended during touch input.

C#
public static bool GetShouldSuspendMousePromotion(DependencyObject obj)
Parameters:objDependencyObjectReturns:

bool

Gets a value indicating the touch mode of the object.

C#
public static TouchMode GetTouchMode(DependencyObject obj)
Parameters:objDependencyObjectReturns:

TouchMode

Releases the touch capture.

C#
public static bool ReleaseTouchCapture(UIElement element, TouchDevice touchDevice)
Parameters:elementUIElementtouchDeviceTouchDeviceReturns:

bool

Removes the handler for the Drag event.

C#
public static void RemoveDragEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the DragFinished event.

C#
public static void RemoveDragFinishedEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the DragStarted event.

C#
public static void RemoveDragStartedEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the LostTouchCapture event.

C#
public static void RemoveLostTouchCaptureHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the Pinch event.

C#
public static void RemovePinchEventHandler(UIElement element, PinchEventHandler handler)
Parameters:elementUIElementhandlerPinchEventHandler

Removes the handler for the PinchFinished event.

C#
public static void RemovePinchFinishedEventHandler(UIElement element, PinchEventHandler handler)
Parameters:elementUIElementhandlerPinchEventHandler

Removes the handler for the PinchStarted event.

C#
public static void RemovePinchStartedEventHandler(UIElement element, PinchEventHandler handler)
Parameters:elementUIElementhandlerPinchEventHandler

Removes the handler for the Swipe event.

C#
public static void RemoveSwipeEventHandler(UIElement element, SwipeEventHandler handler)
Parameters:elementUIElementhandlerSwipeEventHandler

Removes the handler for the SwipeFinished event.

C#
public static void RemoveSwipeFinishedEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the SwipeInertia event.

C#
public static void RemoveSwipeInertiaEventHandler(UIElement element, SwipeInertiaEventHandler handler)
Parameters:elementUIElementhandlerSwipeInertiaEventHandler

Removes the handler for the SwipeInertiaFinished event.

C#
public static void RemoveSwipeInertiaFinishedEventHandler(UIElement element, RadRoutedEventHandler handler)
Parameters:elementUIElementhandlerRadRoutedEventHandler

Removes the handler for the SwipeInertiaStarted event.

C#
public static void RemoveSwipeInertiaStartedEventHandler(UIElement element, RadRoutedEventHandler handler)
Parameters:elementUIElementhandlerRadRoutedEventHandler

Removes the handler for the SwipeStarted event.

C#
public static void RemoveSwipeStartedEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the TapAndHold event.

C#
public static void RemoveTapAndHoldEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the Tap event.

C#
public static void RemoveTapEventHandler(UIElement element, TapEventHandler handler)
Parameters:elementUIElementhandlerTapEventHandler

Removes the handler for the TapHoldAndRelease event.

C#
public static void RemoveTapHoldAndReleaseEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the TouchDown event.

C#
public static void RemoveTouchDownEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the TouchEnter event.

C#
public static void RemoveTouchEnterEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the TouchLeave event.

C#
public static void RemoveTouchLeaveEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the TouchMove event.

C#
public static void RemoveTouchMoveEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Removes the handler for the TouchUp event.

C#
public static void RemoveTouchUpEventHandler(UIElement element, TouchEventHandler handler)
Parameters:elementUIElementhandlerTouchEventHandler

Sets a value indicating which action starts a drag operation.

C#
public static void SetDragStartTrigger(DependencyObject obj, TouchDragStartTrigger value)
Parameters:objDependencyObjectvalueTouchDragStartTrigger

Sets the scroll viewer swipe mode.

C#
public static void SetScrollViewerSwipeMode(DependencyObject obj, ScrollViewerSwipeMode value)
Parameters:objDependencyObjectvalueScrollViewerSwipeMode

Sets a value indicating whether mouse events should be suspended during touch input.

C#
public static void SetShouldSuspendMousePromotion(DependencyObject obj, bool value)
Parameters:objDependencyObjectvaluebool

Sets a value indicating the touch mode of the object.

C#
public static void SetTouchMode(DependencyObject obj, TouchMode value)
Parameters:objDependencyObjectvalueTouchMode
In this article
DefinitionFieldsDragStartTriggerPropertyScrollViewerSwipeModePropertyShouldSuspendMousePromotionPropertyTouchModePropertyPropertiesDragStartDistanceIsEnabledIsTouchEnabledMultiTapTimeMultiTapVicinityPinchStartDistanceSwipeInertiaDurationSwipeStartDistanceTapTimeTapVicinityMethodsAddDragEventHandler(UIElement, TouchEventHandler, bool)AddDragFinishedEventHandler(UIElement, TouchEventHandler, bool)AddDragStartedEventHandler(UIElement, TouchEventHandler, bool)AddLostTouchCaptureHandler(UIElement, TouchEventHandler, bool)AddPinchEventHandler(UIElement, PinchEventHandler, bool)AddPinchFinishedEventHandler(UIElement, PinchEventHandler, bool)AddPinchStartedEventHandler(UIElement, PinchEventHandler, bool)AddSwipeEventHandler(UIElement, SwipeEventHandler, bool)AddSwipeFinishedEventHandler(UIElement, TouchEventHandler, bool)AddSwipeInertiaEventHandler(UIElement, SwipeInertiaEventHandler, bool)AddSwipeInertiaFinishedEventHandler(UIElement, RadRoutedEventHandler, bool)AddSwipeInertiaStartedEventHandler(UIElement, RadRoutedEventHandler, bool)AddSwipeStartedEventHandler(UIElement, TouchEventHandler, bool)AddTapAndHoldEventHandler(UIElement, TouchEventHandler, bool)AddTapEventHandler(UIElement, TapEventHandler, bool)AddTapHoldAndReleaseEventHandler(UIElement, TouchEventHandler, bool)AddTouchDownEventHandler(UIElement, TouchEventHandler, bool)AddTouchEnterEventHandler(UIElement, TouchEventHandler, bool)AddTouchLeaveEventHandler(UIElement, TouchEventHandler, bool)AddTouchMoveEventHandler(UIElement, TouchEventHandler, bool)AddTouchUpEventHandler(UIElement, TouchEventHandler, bool)CaptureTouch(UIElement, TouchDevice)CeaseGestures(FrameworkElement)GetCaptured(TouchDevice)GetDragStartTrigger(DependencyObject)GetScrollViewerSwipeMode(DependencyObject)GetShouldSuspendMousePromotion(DependencyObject)GetTouchMode(DependencyObject)ReleaseTouchCapture(UIElement, TouchDevice)RemoveDragEventHandler(UIElement, TouchEventHandler)RemoveDragFinishedEventHandler(UIElement, TouchEventHandler)RemoveDragStartedEventHandler(UIElement, TouchEventHandler)RemoveLostTouchCaptureHandler(UIElement, TouchEventHandler)RemovePinchEventHandler(UIElement, PinchEventHandler)RemovePinchFinishedEventHandler(UIElement, PinchEventHandler)RemovePinchStartedEventHandler(UIElement, PinchEventHandler)RemoveSwipeEventHandler(UIElement, SwipeEventHandler)RemoveSwipeFinishedEventHandler(UIElement, TouchEventHandler)RemoveSwipeInertiaEventHandler(UIElement, SwipeInertiaEventHandler)RemoveSwipeInertiaFinishedEventHandler(UIElement, RadRoutedEventHandler)RemoveSwipeInertiaStartedEventHandler(UIElement, RadRoutedEventHandler)RemoveSwipeStartedEventHandler(UIElement, TouchEventHandler)RemoveTapAndHoldEventHandler(UIElement, TouchEventHandler)RemoveTapEventHandler(UIElement, TapEventHandler)RemoveTapHoldAndReleaseEventHandler(UIElement, TouchEventHandler)RemoveTouchDownEventHandler(UIElement, TouchEventHandler)RemoveTouchEnterEventHandler(UIElement, TouchEventHandler)RemoveTouchLeaveEventHandler(UIElement, TouchEventHandler)RemoveTouchMoveEventHandler(UIElement, TouchEventHandler)RemoveTouchUpEventHandler(UIElement, TouchEventHandler)SetDragStartTrigger(DependencyObject, TouchDragStartTrigger)SetScrollViewerSwipeMode(DependencyObject, ScrollViewerSwipeMode)SetShouldSuspendMousePromotion(DependencyObject, bool)SetTouchMode(DependencyObject, TouchMode)
Not finding the help you need?
Contact Support