Version

GetScreenRectForFrameworkElement Method (XamRibbonProxy)

Overrides the VisualUtils.GetScreenRectForFrameworkElement to check if the Visual is connected to a Presentation Source and only then get the Screen Rect
Syntax
'Declaration
 
Public Function GetScreenRectForFrameworkElement( _
   ByVal fwElem As System.Windows.FrameworkElement _
) As System.Windows.Rect
public System.Windows.Rect GetScreenRectForFrameworkElement( 
   System.Windows.FrameworkElement fwElem
)
public: System.Windows.Rect GetScreenRectForFrameworkElement( 
   System.Windows.FrameworkElement* fwElem
) 

Parameters

fwElem
The framework element whose screen rect is needed

Return Value

The Screen Rect for the given framework element
Requirements

Target Platforms: Windows 7, 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