Version

GetRectFromFrameworkElement Method (XamRibbonProxy)

Overrides the base GetRectFromFrameworkElement method to check if the Visual is connected to a Presentation Source and only then returns a Rect for the framework element
Syntax
'Declaration
 
Protected Overrides Function GetRectFromFrameworkElement( _
   ByVal fwElem As System.Windows.FrameworkElement _
) As System.Windows.Rect
protected override System.Windows.Rect GetRectFromFrameworkElement( 
   System.Windows.FrameworkElement fwElem
)
protected: System.Windows.Rect GetRectFromFrameworkElement( 
   System.Windows.FrameworkElement* fwElem
) override 

Parameters

fwElem
Framework element whose Rect is needed

Return Value

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