Change a Windows Store App's title text

2019-04-23 09:42发布

问题:

How can I change the shown title of the app? (Like Photos does)

In Winforms that would be form1.Text = "new title";.

How do we do that in UWP?

回答1:

using Windows.UI.ViewManagement;

...

ApplicationView appView = ApplicationView.GetForCurrentView();
appView.Title = "Title text goes here";


回答2:

When I use ApplicationView, it appends the Title to the assembly name.

We could edit Application -> Display Name in the Package.appxmanifest file.