Returns the x- and y-coordinates of the mouse pointer position, optionally
evaluated against a coordinate origin of a supplied UIElement.
Namespace:
C1.SilverlightAssembly: 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
Any UIElement-derived object that is contained by the Silverlight plug-in and connected to the object tree. To specify the object relative to the overall Silverlight coordinate system, set the relativeTo parameter to null.