Gets the position of the pointer or finger.

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

Syntax

C#
public static Point GetPosition(
	RoutedEventArgs args,
	UIElement relativeTo
)
Visual Basic
Public Shared Function GetPosition ( _
	args As RoutedEventArgs, _
	relativeTo As UIElement _
) As Point

Parameters

args
Type: System.Windows..::..RoutedEventArgs
The RoutedEventArgs instance containing the manipulation data.
relativeTo
Type: System.Windows..::..UIElement
Any UIElement-derived object that is connected to the same object tree. To specify the object relative to the overall coordinate system, use a relativeTo value of null.

Return Value

See Also