Change a Windows Store App's title text

旧巷老猫 提交于 2019-12-06 21:30:33

问题


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.



来源:https://stackoverflow.com/questions/33400597/change-a-windows-store-apps-title-text

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!