Partager via


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

Return Value

Type: System.Windows.FrameworkElement

.NET Framework Security

See Also

Reference

WindowHelper Class

WindowHelper Members

Microsoft.Internal.VisualStudio.PlatformUI Namespace