Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Touch Class

July 28, 2014

Provides an application-level service that processes touch input from the operating system and raises the Windows Phone-specific FrameReported event.

System.Object
  System.Windows.Input.Touch

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)

public static class Touch

The Touch type exposes the following members.

  NameDescription
Public eventStatic memberFrameReportedOccurs when the input system promotes a Windows 7 touch message forWindows Phone.
Top

Touch events do not use the same event model as other Windows Phone input events such as MouseLeftButtonDown. Rather than being exposed as an element-specific event that potentially routes through the object tree of a UI, the touch input event is a single event handled at the level of the application. You then use the TouchFrameEventArgs and call GetPrimaryTouchPoint versus specific UI elements and their bounds. This determines the specific touch point frame of reference within your application's UI layout.

Touch input requires hardware that is touch-sensitive, as well as an environment that supports the infrastructure needed to expose touch events to individual applications.

Version Notes

Windows Phone

This uses an entirely different touch input model. For more information on touch input, manipulations and gestures for Windows Phone, see How to handle manipulation events for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2014 Microsoft