Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
In a Cross-platform Xamarin Forms project, and although effective on the MainPage, use of SetHasNavigationBar(this, false) on NavigationPages created from MainPage is not effective on all platforms. On WinPhone, a black space is allocated at the top of the screen. On iPhone, the NavigationBar is present. On Nexus9/6 emulators (VS2015v2), the NavigationBar is not present(FUNCTIONAL).
i have this issue as well
Thank you for taking the time to submit the bug.
If you could please attach a reproduction to the bug by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue, we would very much appreciate it.
For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d Warm regards, Xamarin Forms Team
Created attachment 16951 [details]
Here's a repro. I'm hiding the navigation bar in Page1's constructor. In Page2's constructor, the same line of code is commented out. If you click Page1's button, Page2 will be loaded but the navigation bar appears again.
If you want to hide the navigation bar, then NavigationPage.SetHasNavigationBar(this, false); must be called on all pages.
Hi, i looked at the issue and what you are expecting is not correct.
This works as an attached property on a page, and the extension method takes the page you want to hide the nav on, this will only work for pages that aren't navigation pages, (but children of it).
ok, so you're saying that the nav bar should be hidden for each page separately? i was under the impression that it was a global toggle switch basically.
Yes you have to set for each page separately.