MessageDialog.Title Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the title to display on the dialog, if any.
public:
property Platform::String ^ Title { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Title();
void Title(winrt::hstring value);
public string Title { get; set; }
var string = messageDialog.title;
messageDialog.title = string;
Public Property Title As String
Property Value
The title to display on the dialog; or, an empty string if no title is set.
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 use the dialog to deliver a simple message, error, or question, omit the title. Rely on the content to deliver that core information.
On the desktop device family the title is displayed both in the title bar of the popup dialog window, and in the body of the dialog. On the mobile device family, the title is shown only in the body of the dialog.