title: navigation bar can't hide xamarin forms
body: <p>this my DetailsPage</p>
  <p>public DetailsPage(Property property)
  {</p>
  <pre><code>        Xamarin.Forms.NavigationPage.SetHasNavigationBar(this, false);
          Xamarin.Forms.NavigationPage.SetHasBackButton(this, false);
          InitializeComponent();
       
          this.Property = property;
          this.BindingContext = this;
                }
  </code></pre>
  <p>and in my XAML code, I have added these lines</p>
  <p>NavigationPage.HasNavigationBar=&quot;False&quot;
  NavigationPage.HasBackButton=&quot;False&quot;</p>
  <p>but can't hide the navigation bar in detailspage</p>