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 - Displaying JSON data posts for blog using just the post id -

docusignapi - Documents restrictions within a package -

javascript - angular.forEach loop with $http.get -