Ankush Guhe
Ankush Guhe

Reputation: 797

Customize Windows 10 UWP back button

Is there any way to customize the background color and Size of the UWP App_Back button?

Upvotes: 4

Views: 1158

Answers (1)

Alexej Sommer
Alexej Sommer

Reputation: 2679

There is a way to customize title bar. I think this article would be helpful for you:
Easily manage the Title Bar in Windows 10 apps

For example, you can edit color with ApplicationView.GetForCurrentView().TitleBar property:

var titleBar = ApplicationView.GetForCurrentView().TitleBar;
titleBar.ButtonBackgroundColor = Colors.Maroon;
titleBar.ButtonForegroundColor = Colors.Yellow;

Or you can even find by this link solution how to remove chrome and create your own chrome with back button (a little bit complicated way)

The idea is to set application "chromeless" with CoreApplication class and code like:

CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;

After this you can create your XAML element to be instead of Title Bar with help of Window.SetTitleBar method

Upvotes: 2

Related Questions