Open mduchev opened 4 years ago
This has been open for a very long time now and to me it seems like this issue is present in some builds but not in others... It was fixed, i uploaded my app and now after updating the xamarin nuget it's back.
@mduchev Your workaround saved my ass today! Thank you! :)
Description
The navigation bar doesn't gets its styles correctly upon start-up of the app if the styles are retrieved via dynamic styles
Steps to Reproduce
Note: See the attached project. Everything has already been set-up there, for reference.
Expected Behavior
The Navigation bar to be with the styles according to the device theme (if Theme is dark, then the Navigation bar's background color should be black and text color - white and vice-versa)
Actual Behavior
The navigation bar changes its colors if we switch the theme runtime, but on app start-up the styles are incorrect, even though we set the Theme correctly.
Basic Information
Reproduction Link
DemoNavBarDynamicBackground.zip
Workaround
There is a workaround - if we force the PropertyChanged on BarBackgroundColor & BarTextColor in the code-behind of the navigation page (on the OnAppearing), then it works as expected. See lines 23 & 24 in DemoNavigationPage.xaml.cs from the demo project.