title: Hide Navigation Bar on MasterDetailPage
body: <p>I have a MasterDetailPage that contains the following constructor:</p>
  
  <pre><code>    public MainPage()
      {
          NavigationPage.SetHasNavigationBar(this, false);
          NavigationPage.SetHasBackButton(this, false);
          InitializeComponent();
  
          MessagingCenter.Subscribe&lt;JobsPage&gt;(this, "OpenMenu", (sender) =&gt; {
              IsPresented = true;
          });
  
          MasterPage.ListView.ItemSelected += ListView_ItemSelected;
          this.MasterBehavior = MasterBehavior.Popover;
          App.NavPage = new NavigationPage(new JobsPage() { Title = "Jobs" });
          Detail = App.NavPage;
      }
  </code></pre>
  
  <p>As you can see, I've set <code>SetHasNavigationBar</code> and <code>SetHasBackButton</code> to false.</p>
  
  <p>On a <em>different</em> page (a ContentPage, not a MasterDetailPage), I did the same thing in the constructor:</p>
  
  <pre><code>    NavigationPage.SetHasNavigationBar(this, false);
      NavigationPage.SetHasBackButton(this, false);
      InitializeComponent();
  </code></pre>
  
  <p>On my <code>ContentPage</code>, this works fine, as shown below.</p>
  
  <p><a href="https://i.stack.imgur.com/3Cos1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3Cos1.png" alt="enter image description here"></a></p>
  
  <p>On my <code>MasterDetailPage</code>, however, I'm still seeing the Navigation bar. </p>
  
  <p><a href="https://i.stack.imgur.com/Ipr7a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ipr7a.png" alt="enter image description here"></a></p>
  
  <p>How can I fix this?</p>