Change a Windows Store App's title text

前端 未结 2 1924
梦如初夏
梦如初夏 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";
    

提交回复
热议问题