Trevi Awater Trevi Awater - 1 year ago 363
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);