Returns the given screen position relative to the given UIElement.

Namespace: Mindscape.PhoneElements
Assembly: Mindscape.PhoneElements (in Mindscape.PhoneElements.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
protected Point GetPosition(
	UIElement relativeTo,
	Point screenPosition
)
Visual Basic
Protected Function GetPosition ( _
	relativeTo As UIElement, _
	screenPosition As Point _
) As Point
Visual C++
protected:
Point GetPosition(
	UIElement^ relativeTo, 
	Point screenPosition
)

Parameters

relativeTo
Type: System.Windows..::..UIElement
The UIElement to derive the position.
screenPosition
Type: System.Windows..::..Point
A position in screen coordinates.

Return Value

The given screen position relative to the given UIElement.

See Also