Laurent Resman Laurent Resman - 1 month ago 8
C# Question

UWP AppBar color c#

I'm trying myself at designing windows universal apps (windows 10), and in order that everything would look right, I wish to change application border color. I was checking forums earlier and non of the solutions seem right.

Thanks for all your time

Here is an example I have found, mint color even tho I have dark gray as my system color.

Fitbit example

Answer

From UWP Windows 10 App, TitleBar and Status bar customization:

if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.ApplicationView"))
{
    var titleBar = ApplicationView.GetForCurrentView().TitleBar;
    if (titleBar != null)
    {
        titleBar.ButtonBackgroundColor = Colors.DarkBlue;
        titleBar.ButtonForegroundColor = Colors.White;
        titleBar.BackgroundColor = Colors.Blue;
        titleBar.ForegroundColor = Colors.White;
    }
}
Comments