WindowHelper.GetFrameworkElementFromUIElement 方法

创建从指定的 UI 元素的 FrameworkElement

命名空间:  Microsoft.Internal.VisualStudio.PlatformUI
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Public Shared Function GetFrameworkElementFromUIElement ( _
    element As IVsUIElement _
) As FrameworkElement
public static FrameworkElement GetFrameworkElementFromUIElement(
    IVsUIElement element
)

参数

返回值

类型:System.Windows.FrameworkElement
UI 对象的结构元素。

.NET Framework 安全性

请参见

参考

WindowHelper 类

Microsoft.Internal.VisualStudio.PlatformUI 命名空间