Change the Nav Bar Style

PDF for offline use
Related SDKs:

Let us know how you feel about this

Translation Quality


This recipe shows how to change the style of a navigation bar.


To change the style of the navigation bar to black set the BarStyle property of the UIViewController’s NavigationBar property:

NavigationController.NavigationBar.BarStyle = UIBarStyle.Black;

To reset to its default style, set this value to UIBarStyle.Default:

NavigationController.NavigationBar.BarStyle = UIBarStyle.Default;

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.