다음을 통해 공유


WindowHelper Class

Provides static helper methods for windows.

Inheritance Hierarchy

System.Object
  Microsoft.Internal.VisualStudio.PlatformUI.WindowHelper

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

Syntax

‘선언
Public NotInheritable Class WindowHelper
public static class WindowHelper

The WindowHelper type exposes the following members.

Methods

  Name Description
Public methodStatic member AddHelpTopic Adds a help topic to a data source used by a dialog that uses the constants HelpTopic property and Help verb.
Public methodStatic member CreateChildElement(IVsUIElement, IntPtr) Creates and displays the specified element as a modeless child window.
Public methodStatic member CreateChildElement(IVsUIElement, FrameworkElement, FrameworkElement%) Creates and sets the specified element as a child of the specified parent.
Public methodStatic member CreateChildElement(Guid, UInt32, IVsUISimpleDataSource, IntPtr) Creates and displays a UI element as a modeless child window.
Public methodStatic member CreateChildElement(Guid, UInt32, IVsUISimpleDataSource, FrameworkElement, FrameworkElement%) Creates and sets the element as a child of the specified parent.
Public methodStatic member CreateUIElement(Type)
Public methodStatic member CreateUIElement(Guid, UInt32) Creates a UI element.
Public methodStatic member CreateWpfLoader Creates a WPF loader to create IVsUIElement objects that wrap the UI objects specified by their types.
Public methodStatic member GetDialogOwnerHandle Gets the window handle that can be used to parent modal dialogs.
Public methodStatic member GetFrameworkElementFromUIElement Creates a FrameworkElement from the specified UI element.
Public methodStatic member GetHwndFromUIElement Gets a window handle from the specified UI element.
Public methodStatic member ShowModal(Window) Displays a WPF window as a modal dialog in Visual Studio.
Public methodStatic member ShowModal(Window, IntPtr) Displays a WPF window using a Win32 parent window.
Public methodStatic member ShowModalElement(IVsUIElement) Creates the specified element and displays it as a modal dialog, using the main window of the IDE as the parent.
Public methodStatic member ShowModalElement(IVsUIElement, IntPtr) Displays the UI element as a modal dialog, using the specified Win32 window as the parent.
Public methodStatic member ShowModalElement(IVsUIElement, Window) Creates the specified element and displays it as a modal dialog, using the specified window or the main window of the IDE as the parent.
Public methodStatic member ShowModalElement(Guid, UInt32, IVsUISimpleDataSource) Create the specified element and display it as a modal dialog, using the main window of the IDE as the parent.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Internal.VisualStudio.PlatformUI Namespace