DialogWindow.ShowModal Method ()

 

Gets the parent or owner of the dialog from the Visual Studio shell and displays the dialog window. It also puts the shell in a modal state while the dialog is displayed, and centers the dialog window correctly in the parent window.

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

public Nullable<bool> ShowModal()

Return Value

Type: System.Nullable<Boolean>

T:System.Nullable`1

If the dialog is parented to a WPF window, you can also ShowDialog to display it, but before doing so you must initialize the P:System.Windows.Window.WindowStartupOwner and the WindowStartupLocation correctly.

Return to top
Show: