Visual Basic (Declaration) | |
---|---|
Public Function GetPosition( _ ByVal relativeTo As UIElement _ ) As Point |
C# | |
---|---|
public Point GetPosition( UIElement relativeTo ) |
Parameters
- relativeTo
- The element to use as the frame of reference for calculating the position of the mouse pointer.
Return Value
The x- and y-coordinates of the mouse pointer position relative to the specified object.Target Platforms:Windows Phone 7