[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides an application-level service that processes touch input from the operating system and raises the Windows Phone-specific FrameReported event.
Assembly: System.Windows (in System.Windows.dll)
Public NotInheritable Class Touch
public static class Touch
The Touch type exposes the following members.
|FrameReported||Occurs when the input system promotes a Windows 7 touch message forWindows Phone.|
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.
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
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.