I'm trying to change the app title dynamically in a Win 10 UWP app using the code below. The colors change but the title won't change. Any 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;
...
}
Current accepted answer modifies the View title, not the App title. That appears to be good enough for the OP but if you want to actually change the App Title for a UWP app, here's what you do.
Open your package manifest and navigate to the "Application" tab. You'll see the app's display name like so,
Then just change the "Display name:" field to whatever you want your custom app title to be, then re-build and you're good to go, like below,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With