简体   繁体   中英

Change color of icons in status bar - Windows 10 Mobile UWP app

I have an uwp app published in Microsoft/Windows Store, and I want change color of icons in status bar. I know change color of status bar background, but I can how change color of icons in status bar in Windows 10 Mobile?

Like this:

if (ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar"))
{
    var statusBar = StatusBar.GetForCurrentView();
    if (statusBar != null)
        statusBar.ForegroundColor = Colors.Red;
}

You'd also need to add reference to Windows Mobile Extensions into your project: 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM