Version

GetScreenPoint(FrameworkElement,Point,FrameworkElement) 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 relativePoint As Point, _
   ByVal relativeElement As FrameworkElement _
) As Point
public static Point GetScreenPoint( 
   FrameworkElement owner,
   Point relativePoint,
   FrameworkElement relativeElement
)

Parameters

owner
The element that would be the owner of the ToolWindow
relativePoint
A point relative to the relativeElement
relativeElement
The element to which the relativePoint is relative or null if the relativePoint is in screen coordinates.

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