Xamarin.forms how to Change the Nav Bar Color [duplicate]

南楼画角 提交于 2019-12-08 07:17:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!