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
If you want to change the NavigationBar BackgroundColor on each page with a different color. You can do the following on the Codebehinds of each page/view.
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace NewApp.Cross.Views
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class NewView : ContentPage
{
public NewView()
{
InitializeComponent();
Title = "PageTitle"
NavigationPage.SetHasBackButton(this, false);
((NavigationPage)Application.Current.MainPage).BarBackgroundColor = Color.Black;
((NavigationPage)Application.Current.MainPage).BarTextColor = Color.OrangeRed;
}
}
}
It works on Android and iOS.