MessageDialog.Title | title property

Applies to Windows and Windows Phone

Gets or sets the title to display on the dialog, if any.

Syntax


var title = messageDialog.title;
messageDialog.title = title;

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The title you want to display on the dialog. If the title is not set, this will return an empty string.

Remarks

Use the title as a concise main instruction to convey the objective of the dialog.

Long titles do not wrap and will be truncated.

If you're using the dialog to deliver a simple message, error or question, omit the title. Rely on the content to deliver that core information.

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
MessageDialog.Content
Quickstart: Designing a message dialog

 

 

Show:
© 2014 Microsoft