WindowHelper.GetFrameworkElementFromUIElement Method
Creates a FrameworkElement from the specified UIElement
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Déclaration
Public Shared Function GetFrameworkElementFromUIElement ( _
element As IVsUIElement _
) As FrameworkElement
'Utilisation
Dim element As IVsUIElement
Dim returnValue As FrameworkElement
returnValue = WindowHelper.GetFrameworkElementFromUIElement(element)
public static FrameworkElement GetFrameworkElementFromUIElement(
IVsUIElement element
)
public:
static FrameworkElement^ GetFrameworkElementFromUIElement(
IVsUIElement^ element
)
static member GetFrameworkElementFromUIElement :
element:IVsUIElement -> FrameworkElement
public static function GetFrameworkElementFromUIElement(
element : IVsUIElement
) : FrameworkElement
Parameters
- element
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIElement
The UIElement from which to get a FrameworkElement
Return Value
Type: System.Windows.FrameworkElement
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.