Bug 38134 - [WinRT] ContentPage set as MasterDetailPage.Detail Shows Navigation Bar
Summary: [WinRT] ContentPage set as MasterDetailPage.Detail Shows Navigation Bar
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.0.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-01-28 17:55 UTC by Jimmy [MSFT]
Modified: 2016-10-25 14:19 UTC (History)
1 user (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

repro solution (100.21 KB, application/zip)
2016-01-28 17:55 UTC, Jimmy [MSFT]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description Jimmy [MSFT] 2016-01-28 17:55:49 UTC
Created attachment 14766 [details]
repro solution

### Overview
On Windows Phone 8.1 RT, if the Detail of a MasterDetailPage is set to a ContentPage, it will show the “navigation bar” (or title area). Calling NavigationPage.SetHasNavigationBar(this, false) will not hide it.

However, if the ContentPage is wrapped in a NavigationPage, SetHasNavigation will work.

### Steps to Reproduce 
1. Run the attached WP 8.1 RT project

### Expected Results
The red Detail page should fill the entire page. You can run the WP8 project to see the expected result.

### Actual Results
The red Detail page has padding above it due to the “navigation bar”. A ContentPage does not show this by default, so it would be expected to work the same when being used as a Detail page.

### Testing Info
Tested with Forms 2.0.1 and 2.1-pre2.
Comment 1 Jimmy [MSFT] 2016-10-25 14:19:12 UTC
I have tested this with Forms and I can no longer reproduce the issue with the attached repro project.