Changing the Navigation Bar Color

We can change the Navigation Bar colors by setting the BarTextColor and BarBackgroundColor as follows :

public App()
{
    InitializeComponent();

    MainPage = new NavigationPage(new HomePage{
        Title = "Movies"
    }){
        BarTextColor = Color.White,
        BarBackgroundColor = Color.Orange
    };
}

Changing the Status Bar Color on iOS

Xamarin uses the NavigationRender to set the navigation displayed for iOS and Android. The default renderer on iOS does not change the status bar color. To change the status bar color we can change it in the Info.plist file by adding a new entry for UIViewControllerBasedStatusBarAppearance and setting it to false

results matching ""

    No results matching ""