Trevi Awater Trevi Awater - 10 months ago 296
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;


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

_navigationPage.SetValue(NavigationPage.BarTextColorProperty, Color.White);