Trevi Awater Trevi Awater - 4 years ago 583
iOS Question

Xamarin.Forms iOS statusbar color with NavigationPage

I am building an application in Xamarin.Forms, on the iOS app I want the status bar color to be white. Here is what I have so far:


public App()
NavigationPage _navigationPage = new NavigationPage(new RootPage());

MainPage = _navigationPage;

Answer Source

After a recent Xamarin update you are now able to do this by setting the BarTextColorProperty,

_navigationPage.SetValue(NavigationPage.BarTextColorProperty, Color.White);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download