TouchExtensions Members



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

The following tables list the members exposed by the TouchExtensions type.

  Name Description
public field static AreAnyInputDevicesCapturedProperty Identifies an attached dependency property that determines whether any input devices are captured by an element.
public field static AreAnyInputDevicesCapturedWithinProperty Identifies an attached dependency property that determines whether any input devices are captured within any portion of an element.
public field static AreAnyInputDevicesDirectlyOverProperty Identifies an attached dependency property that determines whether any input devices are directly over an element.
public field static AreAnyInputDevicesOverProperty Identifies an attached dependency property that determines whether any input devices are over any portion of an element.
public field static HoldGestureEvent Identifies an attached event that is raised when a touch device reports a hold gesture.
public field static PreviewHoldGestureEvent Identifies an attached event that is raised when a hold gesture is about to be reported.
public field static PreviewTapGestureEvent Identifies an attached event that is raised when a tap gesture is about to be reported.
public field static TapGestureEvent Identifies an attached event that is raised when a touch device reports a tap gesture.
Top

  Name Description
public property static AreAnyInputDevicesCaptured Gets whether a specified element is currently capturing at least one input device.
public property static AreAnyInputDevicesCapturedWithin Gets whether any input devices are captured within any portion of an element.
public property static AreAnyInputDevicesDirectlyOver Gets whether any input devices are directly over an element.
public property static AreAnyInputDevicesOver Gets whether any input devices are over any portion of an element.
Top

  Name Description
public method static AddHoldGestureHandler Adds a specified event handler that will handle HoldGesture events for the specified element.
public method static AddPreviewHoldGestureHandler Adds a specified event handler that will handle PreviewHoldGesture events for the specified element.
public method static AddPreviewTapGestureHandler Adds a specified event handler that will handle PreviewTapGesture events for the specified element.
public method static AddTapGestureHandler Adds a specified event handler that will handle TapGesture events for the specified element.
public method static AsManipulator Returns an IManipulator object for the specified TouchDevice, StylusDevice, or MouseDevice.
public method static Capture Overloaded. Redirects input to the specified element.
public method static EnableSurfaceInput Overloaded. Enables input on the specified object, so the associated window is active and starts to receive input events.
public method static GetAreAnyInputDevicesCaptured Gets a value that determines whether any supported input devices are captured by the specified element.
public method static GetAreAnyInputDevicesCapturedWithin Gets a value that determines whether any supported input devices are captured within any portion of the specified element.
public method static GetAreAnyInputDevicesDirectlyOver Gets a value that determines whether any supported input devices are directly over the specified element.
public method static GetAreAnyInputDevicesOver Gets a value that determines whether any supported input devices are over any portion of an element.
public method static GetBounds Gets a Rect object that contains the bounds (height, width, and location) of the specified TouchDevice, StylusDevice, or MouseDevice.
public method static GetCaptured Gets the element that has captured the specified TouchDevice, StylusDevice, or MouseDevice.
public method static GetCenterPosition Gets the center position of the ellipse that surrounds the most prevalent part of the specified TouchDevice, StylusDevice, or MouseDevice, relative to a specified element.
public method static GetDirectlyOver Gets the element that the specified TouchDevice, StylusDevice, or MouseDevice is captured by when the device is directly over the element.
public method static GetEllipse Creates an Ellipse object that defines an approximate ellipse for the specified TouchDevice, StylusDevice, or MouseDevice.
public method static GetEllipseData Gets ellipse data (such as axes and orientation) for the specified TouchDevice, StylusDevice, or MouseDevice, relative to the specified element.
public method static GetInputDevicesCaptured Gets a collection of input devices that have been captured by the specified element.
public method static GetInputDevicesCapturedWithin Gets a collection of input devices that have been captured within any portion of the specified element.
public method static GetInputDevicesDirectlyOver Gets a collection of input devices that are directly over the specified element.
public method static GetInputDevicesOver Gets a collection of input devices that are over any portion of an element.
public method static GetIsCapturedWithinElementBounds Gets a value that represents whether the specified TouchDevice, StylusDevice, or MouseDevice is captured within the bounds the element that captured it.
public method static GetIsFingerRecognized Gets a Boolean value that indicates whether captured input is recognized as a finger.
public method static GetIsTagRecognized Gets a Boolean value that indicates whether captured input is recognized as a tagged object.
public method static GetOrientation Gets the orientation of the specified TouchDevice, StylusDevice, or MouseDevice, relative to the specified IInputElement object.
public method static GetPhysicalArea Gets the physical area that a touch covers.
public method static GetPosition Gets the position of a TouchDevice, StylusDevice, or MouseDevice, relative to a specified IInputElement object.
public method static GetTagData Gets the TagData structure that contains the values of the tag.
public method static GetUserData Gets the user data that is associated with the specified TouchDevice, StylusDevice, or MouseDevice for the specified key.
public method static ReleaseAllCaptures Releases all input devices captured by the specified element.
public method static RemoveHoldGestureHandler Removes the specified HoldGesture event handler method from the specified element.
public method static RemovePreviewHoldGestureHandler Removes the specified PreviewHoldGesture event handler method from the specified element.
public method static RemovePreviewTapGestureHandler Removes the specified PreviewTapGesture event handler method from the specified element.
public method static RemoveTapGestureHandler Removes the specified TapGesture event handler method from the specified element.
public method static SetUserData Sets the specified user data property to the specified value.
public method static Synchronize Overloaded. Forces input devices over the specified element to resynchronize.
public method static UpdateEllipse Updates an Ellipse object that defines an approximate shape to match the screen-space dimensions of the specified TouchDevice, StylusDevice, or MouseDevice.
Top

  Name Description
public event static HoldGesture Occurs when a touch device reports a hold gesture.
public event static PreviewHoldGesture Occurs when a touch device is about to report a hold gesture.
public event static PreviewTapGesture Occurs when a touch device is about to report a tap gesture.
public event static TapGesture Occurs when a touch device reports a tap gesture.
Top

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

© Microsoft Corporation. All rights reserved.
Show: