Export (0) Print
Expand All

TouchExtensions Class



Provides attached dependency properties and extension methods to capture and track input from a touch point, mouse, or stylus.

Namespace: Microsoft.Surface.Presentation.Input
Assembly: Microsoft.Surface.Presentation (in Microsoft.Surface.Presentation)

'Usage

[ExtensionAttribute] 
public static class TouchExtensions
/** @attribute ExtensionAttribute() */ 
public final class TouchExtensions
ExtensionAttribute 
public final class TouchExtensions

The extension methods in this class apply to the InputDevice, IInputElement, and DependencyObject types. For more information about extension methods, see Extension Methods (C# Programming Guide).

In Windows Presentation Foundation (WPF), a TouchDevice object represents a single touch point. Multiple instances of TouchDevice can be present at the same time. A TouchDevice instance gets initialized when an object (for example, a finger) touches the interactive surface, and is disposed of when the object leaves the surface.

Many members of the TouchExtensions class gather data from any form of input. For example, the GetAreAnyInputDevicesCapturedWithin method determines whether any supported input devices (mouse, stylus, or touch) are captured within any portion of the specified element.

Additionally, the TouchExtensions class includes members that can handle tap and hold gestures from a touch device (for example, a finger, blob, or tag).


System.Object
  Microsoft.Surface.Presentation.Input.TouchExtensions

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

 

Requirements

Operating System (OS)Windows 7
Software Developer Kit (SDK)Surface 2.0
.NET Framework 4
Developer environmentVisual Studio 2010, Express or full edition
Microsoft Expression Blend 4.0 (optional)
End-user hardwareDevices made for Surface 2.0, or
Windows Touch computers

Did you find this information useful? Please send us your suggestions and comments.

© Microsoft Corporation. All rights reserved.
Show:
© 2014 Microsoft