次の方法で共有


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.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣言
Public Function ShowModal As Nullable(Of Boolean)
public Nullable<bool> ShowModal()

Return Value

Type: System.Nullable<Boolean>
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 WindowStartupOwner and the WindowStartupLocation correctly.

.NET Framework Security

See Also

Reference

DialogWindow Class

Microsoft.VisualStudio.PlatformUI Namespace