It is pretty simple.
Quick response
Just add this line
MainPage.SetValue(NavigationPage.BarBackgroundColorProperty, Color.Black);
Or, if you inherit from NavigationPage, you can do this with
BarBackgroundColor = Color.Black;
Detailed answer You have two options. Let's look at them.
Option 1
public App() { MainPage = new MainPageUser();
Option 2
public App() { MainPage = new MainPageUser(); } public class MainPageUser : NavigationPage { public MainPageUser((Page root) : base(root) {
But, as you probably noticed now, the status bar in iOS on top is also black and that you will need to change the Info.plist file in your ios project and open it (right-click and select "open with") using the editor xml and add these lines of code
<key>UIStatusBarStyle</key> <string>UIStatusBarStyleLightContent</string> <key>UIViewControllerBasedStatusBarAppearance</key> <false/>
source share