WindowHelper::ShowModalElement Method (IVsUIElement, Window)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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.

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assemblies:   Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

public:
static int ShowModalElement(
	IVsUIElement^ element, 
	Window^ owner
)

Parameters

element
Type: Microsoft.VisualStudio.Shell.Interop::IVsUIElement

The element to create and display as a dialog window.

owner
Type: System.Windows::Window

The window to be used as the parent.

Return Value

Type: System::Int32
A Win32 button ID, or 0 for unknown.

Show: