Aracılığıyla paylaş


MessageDialog.Title Property

Definition

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

String

Platform::String

winrt::hstring

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.

Applies to

See also