ComponentOne Basic Library for WPF and Silverlight
GetPosition Method (DragDropEventArgs)


C1.Silverlight Namespace > DragDropEventArgs Class : GetPosition Method
System.Windows.UIElement that determines the coordinate system of the return value.
Gets the mouse coordinates relative to a given System.Windows.UIElement.
Syntax
'Declaration
 
Public Function GetPosition( _
   ByVal relativeTo As System.Windows.UIElement _
) As System.Windows.Point
'Usage
 
Dim instance As DragDropEventArgs
Dim relativeTo As System.Windows.UIElement
Dim value As System.Windows.Point
 
value = instance.GetPosition(relativeTo)
public System.Windows.Point GetPosition( 
   System.Windows.UIElement relativeTo
)

Parameters

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

Return Value

A System.Windows.Point that contains the mouse coordinates relative to the System.Windows.UIElement specified by the relativeTo parameter.
See Also

Reference

DragDropEventArgs Class
DragDropEventArgs Members