I am trying to change the color of top/notification bar on Xamarin Forms Portable Class Library. I have tried using the following:
MainPage.SetValue(NavigationPage.BarTextColorProperty, Color.FromHex(#424242);
Source: Xamarin.Forms - Change StatusBar Color
I have also tried using
public App()
{
MainPage = new NavigationPage(new Page1())
{
BarBackgroundColor = Color.FromHex("#424242"),
BarTextColor = Color.White,
};
}
In first instance/code the app launches, however gets stuck at loading screen. Am also new to using Xamarin, so unsure where to find error logs for this as none were displayed in the console.
In the second instance/code the app colors the area on top of the application/under the notification bar but not the notification bar itself.
Hope someone can guide me in the right direction.
Thanks