Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

TitleBar.Subtitle 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 subtitle text to display in the title bar.

public:
 property Platform::String ^ Subtitle { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Subtitle();

void Subtitle(winrt::hstring value);
public string Subtitle { get; set; }
var string = titleBar.subtitle;
titleBar.subtitle = string;
Public Property Subtitle As String

Property Value

String

Platform::String

winrt::hstring

The subtitle text to display in the title bar. The default is an empty string.

Examples

This example shows how to set the Subtitle property to a literal string.

<TitleBar Title="My App" Subtitle="Preview"/>
TitleBar titleBar = new TitleBar();
titleBar.Title = "My App";
titleBar.Subtitle = "Preview";

Remarks

The subtitle is shown to the right of the title. It is typically used to display versioning information, like "Preview" or "Beta".

When the TitleBar is in compact display mode, the Title and Subtitle elements are not shown.

Applies to


Feedback

Was this page helpful?