UWP - How to change title bar text

UWP - Change the title bar text programmatically
The following Universal Windows Platform application development tutorial demonstrates how we can set or change the title bar text programmatically. Here we will get the application view for the current view. Then we will set the title text for the application view.

The ApplicationView class represents the active application view and associated states and behaviors. The ApplicationView class GetForCurrentView() method gets the view state and behavior settings of the active application. This method returns an ApplicationView instance that can be used to get and set app display properties.

The ApplicationView class Title property gets or sets the displayed title of the window. This Title property value is a String which is the title of the window. So finally, using this ApplicationView Title property the UWP app developers can change the title bar text programmatically.

When the Title property is not set, the system shows the app's display name in the title bar, as specified in the Display name field in the app manifest. When the UWP app developers set the Title property, Windows may choose to append the app display name to the end of the Title value they set.

    <StackPanel Background="Pink" Padding="50">

using Windows.UI.Xaml.Controls;
using Windows.UI.ViewManagement;

namespace UniversalAppTutorials
    public sealed partial class MainPage : Page
        public MainPage()

            // Get the application view
            ApplicationView appView = ApplicationView.GetForCurrentView();

            // Change the application view title text
            appView.Title = "This is new title";
More uwp tutorials