I am using a NavigationPage to proceed from page to page in my application, and I have run into an interesting bug. In my login screen, I am calling NavigationPage.SetHasNavigationBar(this, false) in my overriden OnAppearing() method, and the login screen has no navigation bar, which is what I am looking for, and when I go to the next page, I call NavigationPage.SetHasNavigationBar(this, true) in my overriden OnDisappearing() method, and the navigation bar is now visible for all pages after. Now, when I hit the back button, and go back to the login screen, the navigation bar remains, and doesn't disappear like I want it to, and I am calling SetHasNavigationBar in my OnAppearing() method for the login screen, so shouldn't the navigation bar disappear when I return to it?
↧