Forum Xamarin.iOS


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Keep transparent color in Safe Area on iOS for NavigationPage.

Some of apps does not support dark/white theme (because of client's corporate culture).
NavigationPage has transparent header. This how it looks in "Dark mode":

If I try to set background color for NavigationPage

navPage.BarBackgroundColor = Color.LightGray;
navPage.BarTextColor = Color.Black;

iOS safe area inherits that color, and white statusbar text appears on white background:

Is there any way to set Safe Area background color for NavigationPage?

Everything is ok with simple content pages.

Best Answer


  • SergTomcatSergTomcat Member ✭✭

    Works perfectly.

Sign In or Register to comment.