Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MessageDialog.Title | title property

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 (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2015 Microsoft