DialogWindow.ShowModal DialogWindow.ShowModal DialogWindow.ShowModal DialogWindow.ShowModal Method

Definition

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.

public:
 Nullable<bool> ShowModal();
public Nullable<bool> ShowModal ();
member this.ShowModal : unit -> Nullable<bool>
Public Function ShowModal () As Nullable(Of Boolean)

Returns

T:System.Nullable`1

Remarks

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

Applies to