Compartir a través de


TouchFrameEventArgs.GetPrimaryTouchPoint Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Function GetPrimaryTouchPoint ( _
    relativeTo As UIElement _
) As TouchPoint
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 nulla null reference (Nothing in Visual Basic).

Return Value

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

Remarks

This value can be nulla null reference (Nothing in Visual Basic) if the frame started outside the plug-in area.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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