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");>