Version

GetScreenPoint(FrameworkElement,MouseEventArgs) Method

Helper method for returning a point relative to the screen for the specified owner.
Syntax
'Declaration
 
Public Overloads Shared Function GetScreenPoint( _
   ByVal owner As FrameworkElement, _
   ByVal e As MouseEventArgs _
) As Point
public static Point GetScreenPoint( 
   FrameworkElement owner,
   MouseEventArgs e
)

Parameters

owner
The element that would be the owner of the ToolWindow
e
The mouse event args

Return Value

A point relative to the logical screen for the specified owner. This value can be used to initialize the Top and Left properties of the tool window.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also