Gets the mouse coordinates relative to a given UIElement.

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

Syntax

C#
public Point GetPosition(
	UIElement relativeTo
)
Visual Basic
Public Function GetPosition ( _
	relativeTo As UIElement _
) As Point

Parameters

relativeTo
Type: System.Windows..::..UIElement
UIElement that determines the coordinate system of the return value.

Return Value

A Point that contains the mouse coordinates relative to the UIElement specified by the relativeTo parameter.

See Also