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?
Shell doesn't have this kind of API to change the status bar's background color or text color. You have to implement it on each platform.
Try this blog to achieve it: https://evgenyzborovsky.com/2018/08/20/dynamically-changing-the-status-bar-appearance-in-xamarin-forms/
Answers
"Shell " like in WPF? : you need to use custom renderers for each platform
Shell doesn't have this kind of API to change the status bar's background color or text color. You have to implement it on each platform.
Try this blog to achieve it: https://evgenyzborovsky.com/2018/08/20/dynamically-changing-the-status-bar-appearance-in-xamarin-forms/
Solved & thanks @LandLu