In this article I'll show how to how to change status bar color on WUP (Mobile + PC).
In order to do that in mobile, add the refernce of Microsoft Mobile Extension SDK for Universal App Platform
in your project. You can find it under Reference Manager -> 1.Windows Universal > 2. Extensions.
You can change TitleBar
color for Windows PC and the StatusBar for Mobile like that:
//Windows (PC) title bar color
Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TitleBar.BackgroundColor = Color.FromArgb(100,230, 74, 25);
Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TitleBar.ForegroundColor = Colors.White;
Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TitleBar.ButtonBackgroundColor = Color.FromArgb(100, 230, 74, 25);
Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TitleBar.ButtonForegroundColor = Colors.White;
//StatusBar for Mobile
if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar"))
{
Windows.UI.ViewManagement.StatusBar.GetForCurrentView().BackgroundColor = Color.FromArgb(100, 230, 74, 25);
Windows.UI.ViewManagement.StatusBar.GetForCurrentView().BackgroundOpacity = 1;
Windows.UI.ViewManagement.StatusBar.GetForCurrentView().ForegroundColor = Colors.White;
}