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
Post a Comment