Returns the position of either of the two touch points (0 or 1) relative to the UIElement provided.

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public Point GetPosition(
	UIElement relativeTo,
	int index
)
Visual Basic
Public Function GetPosition ( _
	relativeTo As UIElement, _
	index As Integer _
) As Point

Parameters

relativeTo
Type: System.Windows..::..UIElement
The return value will be relative to this element.
index
Type: System..::..Int32
The touchpoint to use (0 or 1).

Return Value

The gesture's starting point relative to the given UIElement.

See Also