WindowHelper.ShowModal Method (Window)

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

Displays a WPF window as a modal dialog in Visual Studio.

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)

Syntax

'Declaration
Public Shared Function ShowModal ( _
    window As Window _
) As Integer
public static int ShowModal(
    Window window
)
public:
static int ShowModal(
    Window^ window
)
static member ShowModal : 
        window:Window -> int
public static function ShowModal(
    window : Window
) : int

Parameters

Return Value

Type: System.Int32
The dialog result.

.NET Framework Security

See Also

Reference

WindowHelper Class

ShowModal Overload

Microsoft.Internal.VisualStudio.PlatformUI Namespace