Bug 39105 - MasterDetailPage.IsPresented does not work on UWP (Windows Desktop)
Summary: MasterDetailPage.IsPresented does not work on UWP (Windows Desktop)
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-02-24 23:31 UTC by martin.robins
Modified: 2017-03-06 23:14 UTC (History)
5 users (show)

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

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:
Status:
RESOLVED ANSWERED

Description martin.robins 2016-02-24 23:31:10 UTC
Create a new Xamarin Forms (portable) project in Visual Studio.
Create a simple XAML page in a portable library project as follows...

<?xml version="1.0" encoding="utf-8" ?>
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
									xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
									x:Class="App3.Views.MainPage"
									Title="MasterDetailPage" IsPresented="False">
	<MasterDetailPage.Master>
		<ContentPage Title="Master">
			<Label Text="Master"
						 VerticalOptions="Center"
						 HorizontalOptions="Center" />
		</ContentPage>
	</MasterDetailPage.Master>
	<MasterDetailPage.Detail>
		<ContentPage Title="Details">
			<Label Text="Detail"
						 VerticalOptions="Center"
						 HorizontalOptions="Center" />
		</ContentPage>
	</MasterDetailPage.Detail>
</MasterDetailPage>

Change app.cs to set MainPage = new Views.MainPage() (or whatever you called yours)

Run the UWP version of the app on the desktop (Windows 10).

The MasterDetailPage.Master content is visible; it should not be.
Comment 1 Paul DiPietro [MSFT] 2017-03-06 23:14:33 UTC
While the behavior here was originally a "bug" as described, we did not intend to allow the use of IsPresented in Split mode on the desktop. There was a PR recently merged in which involves this (https://github.com/xamarin/Xamarin.Forms/pull/707). Please use the Popover mode if you would like to use IsPresented.