Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

How to set BarBackgroundColor and BarTextColor when using shell

$
0
0

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?


Viewing all articles
Browse latest Browse all 89864

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>