DialogWindow.ShowModal Method ()
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
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.
Show: