问题
I am trying to change the nav BarBackgroundColor
background color on portable class library project, so how to Change the Nav Bar Color on Xamarin.Forms
回答1:
The NavigationPage has a BarBackgroundColor
property which you can set.
https://developer.xamarin.com/api/type/Xamarin.Forms.NavigationPage/
var nav = new NavigationPage(new ContentPage { Title = "Page" } );
nav.BarBackgroundColor = Color.Blue;
来源:https://stackoverflow.com/questions/36062495/xamarin-forms-how-to-change-the-nav-bar-color