ComponentOne Basic Library for WPF and Silverlight
GetPosition(RoutedEventArgs,UIElement) Method


C1.WPF Namespace > C1InputEventArgs Class > GetPosition Method : GetPosition(RoutedEventArgs,UIElement) Method
The System.Windows.RoutedEventArgs instance containing the manipulation data.
Any UIElement-derived object that is connected to the same object tree. To specify the object relative to the overall coordinate system, use a relativeTo value of null.
Gets the position of the pointer or finger.
Syntax
'Declaration
 
Public Overloads Shared Function GetPosition( _
   ByVal args As System.Windows.RoutedEventArgs, _
   ByVal relativeTo As System.Windows.UIElement _
) As System.Windows.Point
'Usage
 
Dim args As System.Windows.RoutedEventArgs
Dim relativeTo As System.Windows.UIElement
Dim value As System.Windows.Point
 
value = C1InputEventArgs.GetPosition(args, relativeTo)
public static System.Windows.Point GetPosition( 
   System.Windows.RoutedEventArgs args,
   System.Windows.UIElement relativeTo
)

Parameters

args
The System.Windows.RoutedEventArgs instance containing the manipulation data.
relativeTo
Any UIElement-derived object that is connected to the same object tree. To specify the object relative to the overall coordinate system, use a relativeTo value of null.
See Also

Reference

C1InputEventArgs Class
C1InputEventArgs Members
Overload List