Microsoft Mobile Extension SDK for Universal App Platform
在您的项目中添加引用。您可以在 Reference Manager -> 1. Windows Universal -> 2. Extensions 下找到它。

您可以像这样更改 Windows 的 TitleBar 和 Mobile 的 StatusBar:
//windows title bar
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;
}
希望这对某人有帮助。
参考 -在 WUP 上更改标题栏和状态栏颜色