How to change backGround color in Xamarin forms NavigationPage

后端 未结 4 748
北恋
北恋 2021-01-05 15:54

I\'m trying to change the background color of navigationBar in navigationPage I\'m using this code`using System;

using System;
using Xamarin.Forms;
using Sys         


        
4条回答
  •  悲哀的现实
    2021-01-05 16:37

    Just set the BarBackgroundColor property of the NavigationPage instance:

    new NavigationPage(new LoginPage()) { BarBackgroundColor = Color.Green };
    

提交回复
热议问题