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

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -