Unable to change the navigation status bar background dynamically?

I am unable to apply a theme color to the navigation status bat background color. I am using the below code:

var nav = new NavigationPage(new MainMenuView())
{
BarTextColor = Color.White,
};
nav.SetDynamicResource(NavigationPage.BarBackgroundColorProperty, "AppNavigationBarStyle");>

Tagged:

Answers

  • TimBurgessTimBurgess USMember, University

    I was able to it by setting up a style
    <Application.Resources>

    #0D193F





    </Application.Resources>

  • TimBurgessTimBurgess USMember, University

    put in the xaml tags i could not show the text on this post with them in
    Style TargetType="NavigationPage"
    Setter Property="BarTextColor" Value="Color.White"
    Setter Property="BarBackgroundColor" Value="Blue"
    /Style

Sign In or Register to comment.