Forum Xamarin.Forms

How to set BarBackgroundColor and BarTextColor when using shell

LaobuLaobu USMember ✭✭

My aim is to be able to change the color of the top statusbar (the one with the time, battery..etc) at runtime.

When the mainpage of an application is set to a NavigationPage, we can do the following:

NavigationPage NavPage = new NavigationPage();
NavPage.BarTextColor = Color.Purple;
NavPage.BarBackgroundColor = Color.White;
MainPage = NavPage;

How do we do the equivalent when using Shell as there are no equivalent BarTextColor and BarBackgroundColor properties availabe?

Best Answer

Answers

Sign In or Register to comment.