Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the app title in a UWP app

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;

    ...
}
like image 462
BillC Avatar asked Apr 14 '17 15:04

BillC


1 Answers

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,

basic_name

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,

enter image description here

like image 96
kayleeFrye_onDeck Avatar answered Sep 23 '22 00:09

kayleeFrye_onDeck