Udostępnij za pośrednictwem


MessageDialog Class

Definition

Interaction logic for MessageDialog.xaml

public ref class MessageDialog : Microsoft::VisualStudio::PlatformUI::DialogWindow, System::Windows::Markup::IComponentConnector
public class MessageDialog : Microsoft.VisualStudio.PlatformUI.DialogWindow, System.Windows.Markup.IComponentConnector
type MessageDialog = class
    inherit DialogWindow
    interface IComponentConnector
Public Class MessageDialog
Inherits DialogWindow
Implements IComponentConnector
Inheritance
Implements

Properties

HasDialogFrame

Determines whether the window has a frame.

(Inherited from DialogWindowBase)
HasHelpButton

Determines whether the window has a help button.

(Inherited from DialogWindowBase)
HasMaximizeButton

Determines whether the window has a maximize button.

(Inherited from DialogWindowBase)
HasMinimizeButton

Determines whether the window has a minimize button.

(Inherited from DialogWindowBase)
IsCloseButtonEnabled

Gets or sets a value indicating whether the close title bar button should be enabled.

(Inherited from DialogWindowBase)

Methods

InitializeComponent()

InitializeComponent

InvokeDialogHelp()

Invokes the Help for the dialog window.

(Inherited from DialogWindow)
OnClosed(EventArgs)

Handles the Closed event.

OnDialogThemeChanged()

When overridden in a derived class, handles the event raised when the dialog window theme has changed.

(Inherited from DialogWindowBase)
OnSourceInitialized(EventArgs)

Handles the event raised when the window source has been initialized.

(Inherited from DialogWindowBase)
Show(String, String, MessageDialogCommandSet, String, Boolean)

Shows a message box.

Show(String, String, MessageDialogCommandSet)

Shows a message box.

ShowModal()

Finds the parent/owner of the dialog from the Visual Studio shell and display the dialog Sets the shell in modal state while the dialog is shown, and centers correctly the dialog in the parent window.

Note: If the dialog is parented to a WPF window, ShowDialog() can also be used to display it, but before doing so one will have to initialize correctly the dialog Owner and WindowStartupLocation.

(Inherited from DialogWindow)

Applies to