Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How can I change a navbar color of single page?

$
0
0

I have to change color of only one navbar in my App.
Until now I handle color of my navbars in this way:

BarBackgroundColor = Color. Blue;
in this case I can't.

Before i did:

Detail= new NavigationBar(new Page)
{
BarBackgroundColor = Color. Blue
}

Now my page is not a Detail of a MasterPage. Is just a content page linked to a Detail.
In the first page i have a method:

async void Handle_EditProfile(object sender, Event Args e){

  await Navigation.PushAsync(new EditProfile());

 // I wanna set here color of my navbar ( I wanna change color navbar only for EditProfile Page)

}


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>