I have a MasterDetailPage that contains the following constructor:
public MainPage()
{
NavigationPage.SetHasNavigationBar(this, false);
NavigationPage.SetHasBackButton(this, false);
InitializeComponent();
MessagingCenter.Subscribe<JobsPage>(this, "OpenMenu", (sender) => {
IsPresented = true;
});
MasterPage.ListView.ItemSelected += ListView_ItemSelected;
this.MasterBehavior = MasterBehavior.Popover;
App.NavPage = new NavigationPage(new JobsPage() { Title = "Jobs" });
Detail = App.NavPage;
}
As you can see, I've set SetHasNavigationBar
and SetHasBackButton
to false.
On a different page (a ContentPage, not a MasterDetailPage), I did the same thing in the constructor:
NavigationPage.SetHasNavigationBar(this, false);
NavigationPage.SetHasBackButton(this, false);
InitializeComponent();
On my ContentPage
, this works fine, as shown below.
On my MasterDetailPage
, however, I'm still seeing the Navigation bar.
How can I fix this?