共用方式為


WindowHelper.GetFrameworkElementFromUIElement Method

Creates a FrameworkElement from the specified UI element.

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Shared Function GetFrameworkElementFromUIElement ( _
    element As IVsUIElement _
) As FrameworkElement
public static FrameworkElement GetFrameworkElementFromUIElement(
    IVsUIElement element
)

Parameters

Return Value

Type: System.Windows.FrameworkElement
The framework element of the UI object.

.NET Framework Security

See Also

Reference

WindowHelper Class

Microsoft.Internal.VisualStudio.PlatformUI Namespace