c# - How to change the app title in a UWP app -


i'm trying change app title dynamically in win 10 uwp app using code below. colors change title won't change. suggestions?

public appshell() {     this.initializecomponent();      var apptitle = applicationview.getforcurrentview().title;     apptitle = house.name;      var apptitlebar = applicationview.getforcurrentview().titlebar;     apptitlebar.backgroundcolor = colors.lightblue;     apptitlebar.buttonbackgroundcolor = colors.lightblue;     apptitlebar.buttonforegroundcolor = colors.black;      ... } 

try this:

var appview = windows.ui.viewmanagement.applicationview.getforcurrentview(); appview.title = "your title..."; 

Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -