Export (0) Print
Expand All

TouchFrameEventArgs.GetPrimaryTouchPoint Method

Silverlight

Returns the primary touch point for the reported frame as a TouchPoint value. The touch point can be evaluated against a coordinate reference point instead of the absolute Silverlight coordinates.

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

public TouchPoint GetPrimaryTouchPoint(
	UIElement relativeTo
)

Parameters

relativeTo
Type: System.Windows.UIElement
A coordinate reference point that can be used to offset the coordinates of the return value TouchPoint . If you want the reference to be based on Silverlight absolute coordinates, specify relativeTo as null.

Return Value

Type: System.Windows.Input.TouchPoint
The primary touch point for the reported frame.

This value can be null if the frame started outside the plug-in area.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft