Jaa


ApplicationView.Title Property

Definition

Gets or sets the displayed title of the window.

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 = applicationView.title;
applicationView.title = string;
Public Property Title As String

Property Value

String

Platform::String

winrt::hstring

The title of the window.

Remarks

The Title property provides a title for the window.

When the Title property is not set, the system shows the app's display name in the title bar, as specified in the Display name field in the app manifest (Package.appxmanifest). When you set the Title property, Windows may choose to append the app display name to the end of the Title value you set.

We recommend that you set a title that describes the window, not the app. If you have an app that can have multiple documents open, each window should have the document title, which is considered more informative than just showing the app name.

For example, assume you have an app named, "My Notes App", with a window showing a document named "Note 1". You should set the Title property to "Note 1". Windows appends the app display name so the title bar shows "Note 1 - My Notes App".

This property is a nonstatic member of the window object. For JavaScript, this means that it is a method of the window object that getForCurrentView creates, and not a method of the ApplicationView class.

Applies to