Change a Windows Store App's title text

前端 未结 2 1984
梦如初夏
梦如初夏 2021-02-20 17:21

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

相关标签:
2条回答
  • 2021-02-20 17:53
    using Windows.UI.ViewManagement;
    
    ...
    
    ApplicationView appView = ApplicationView.GetForCurrentView();
    appView.Title = "Title text goes here";
    
    0 讨论(0)
  • 2021-02-20 17:58

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

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

    0 讨论(0)
提交回复
热议问题