Bug 41843 - when set IsPresented = false for hide the split panel, it will still only display(render) half detail page(half listview), when MasterBehavior = MasterBehavior.Default
Summary: when set IsPresented = false for hide the split panel, it will still only dis...
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.2.0
Hardware: PC Windows
: --- normal
Target Milestone: UWP
Assignee: Bugzilla
Depends on:
Reported: 2016-06-15 10:18 UTC by Mike
Modified: 2017-06-16 16:41 UTC (History)
4 users (show)

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

Sample file (98.60 KB, application/x-zip-compressed)
2016-06-15 19:43 UTC, Mike
Screenshots (49.48 KB, application/x-zip-compressed)
2016-06-15 19:44 UTC, Mike

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 Mike 2016-06-15 10:18:10 UTC
I have use MasterDetailPage on UWP.

If I set  MasterBehavior = MasterBehavior.Split;

And when the split panel show up. it will cover the detail page, the detail page only show the half page (left side). 

But when I set IsPresented = false,  the split pannel not show, but the detail still only show the left part(even now it got more width after split panel hide).  The right side only show like blank. The only way to show a complete page : click other detail page and click bake or just resize the window.

I think this is a render problem,  I think if MasterBehavior = MasterBehavior.Split;  when the split panel show up from left or hide, you guys must render the detail page again.

Thank you.
Comment 1 Mike 2016-06-15 19:41:59 UTC
For made a sample file for this, took my too much time.
But finally I made a sample file.

Please download the sample.zip from attachment list, and Run to test.  Use UWP Desktop version, before test let the window width to small.

If you still don't know the problem I also upload some screenshot attachments for you understand. please download it and check it.
Comment 2 Mike 2016-06-15 19:43:27 UTC
Created attachment 16343 [details]
Sample file
Comment 3 Mike 2016-06-15 19:44:19 UTC
Created attachment 16344 [details]
Comment 4 Mike 2016-06-15 19:45:41 UTC
I need to change the problem details.

1. MasterBehavior = MasterBehavior.Split;  change to  MasterBehavior = MasterBehavior.Default;   and test on UWP desktop with min width window size.

2.Looks like the problem not only about MasterDetailPage,  also about Listview.
Comment 5 Rui Marinho 2016-07-04 14:21:26 UTC
Sorry but i m not understanding the problem. Can you provide steps ?
Comment 6 Mike 2016-07-04 14:26:26 UTC
Hi, did you see the attachment?  there is some images and sample file for test.  there is some description inside the sample file, you just need to run it.

basically what I'm saying is: The Page only render the half page after the split panel show on,  but when the split panel hide, the page not render again, still only show half page.(first time it show half page because the half area cover by split panel, but after the split panel hide, the all area show on but only the last render area could visible. not all)
Comment 7 Mike 2016-07-06 02:45:06 UTC
please see the attachment.
Comment 8 Mike 2016-08-12 07:41:27 UTC
@Rui Marinho, It's been 1 month after your last response, could you please tell me did you still not understand after saw the attachment or too busy?  Thank you.
Comment 9 Rui Marinho 2016-08-12 16:55:41 UTC
Sorry i have been busy, and forgot to look at your feedback. 

I missed the detail about the minimum width. I able to reproduce the problem.

Comment 10 James Montemagno [MSFT] 2017-06-16 16:33:10 UTC
I don't think this is valid anymore as changes have been made and fixed for this.

Default behavior is that the user needs to control to open/close it. Split means that you always have it open. Popover means that it will open and close.

I validated all three and working correctly via the sample provided and my Hanselman.Forms app: https://github.com/jamesmontemagno/Hanselman.Forms
Comment 11 Mike 2017-06-16 16:41:37 UTC
@James Montemagno , Looks like you didn't understand the problem, the problem not about the split mode, it's about the page render, maybe it's not recognized the container page width sometimes, and will only display the half size(left part, because there is some problem with the page width calculation), that's the problem what I mention.

I don't know Is that fixed or not, I hope you test it before change to fix.