2017-11-23 11 views
1

私は、Microsoft/Windows Storeにuwpアプリケーションを公開しています。ステータスバーにアイコンの色を変更したいと思います。 ステータスバーの背景色が変わっているのを知っていますが、Windows 10 Mobileのステータスバーにアイコンの色を変更する方法はありますか?このようステータスバーのアイコンの色を変更する - Windows 10 Mobile UWPアプリケーション

答えて

2

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

また、あなたのプロジェクトにのWindows Mobile拡張への参照を追加する必要があるだろう: enter image description here

+1

あなたは歓迎している@Fernando! –

関連する問題