MessageDialog.MessageDialog constructors

Applies to Windows and Windows Phone

Constructors for message dialogs that can be used to ask your user simple questions.
The dialog dims the screen behind it and blocks touch events from passing to the app's canvas until the user responds.
Message dialogs should be used sparingly, and only for critical messages or simple questions that must block the user's flow.

Overload list

ConstructorDescription
MessageDialog(String) Initializes a new instance of the MessageDialog class to display an untitled message dialog that can be used to ask your user simple questions.
MessageDialog(String, String) Initializes a new instance of the MessageDialog class to display a titled message dialog that can be used to ask your user simple questions.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Popups
Windows::UI::Popups [C++]

Metadata

Windows.winmd

See also

MessageDialog

 

 

Show:
© 2014 Microsoft