Bug 41761 - Navigation back will output: annot save value from target back to source! when set MasterBehavior="Popover" (must retry again and then it work)
Summary: Navigation back will output: annot save value from target back to source! wh...
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-13 14:31 UTC by Mike
Modified: 2016-10-19 12:10 UTC (History)
2 users (show)

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

Sample for the navigate problem (99.60 KB, application/x-zip-compressed)
2016-06-15 20:15 UTC, Mike
Screenshots (81.51 KB, application/x-zip-compressed)
2016-06-15 20:16 UTC, Mike
new version of can't navigate back sample.zip (123.70 KB, application/x-zip-compressed)
2016-06-16 10:38 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-13 14:31:35 UTC
I have a NavigationPage,  Also has a MasterDetailPage.  I'll switch these sometimes use:

App.Current.MainPage =  navigationPage  or   MasterDetailsPage.

But when I open the MasterDetailsPage. (there is also has a navigationPage inside it). and Navigate to other page. and return
to the first NavigationPage, and click Return button.  

It can't go back,  also the visual studio will output:

Error: Cannot save value from target back to source. BindingExpression: Path='IsPaneOpen' DataItem='Xamarin.Forms.Platform.UWP.MasterDetailControl'; target element is 'Windows.UI.Xaml.Controls.SplitView' (Name='SplitView'); target property is 'IsPaneOpen' (type 'Boolean').

And I must need to press Back button again, and it will work.
This Bug only appears when set the MasterDetailPage.MasterBehavior="Popover";
Comment 1 Mike 2016-06-15 20:14:45 UTC
For this I add a sample attachment, I also add a screenshot attachment.

please download the screenshot first, you will understand the problem, I wrote message and steps on these screenshots.
Comment 2 Mike 2016-06-15 20:15:55 UTC
Created attachment 16345 [details]
Sample for the navigate problem
Comment 3 Mike 2016-06-15 20:16:32 UTC
Created attachment 16347 [details]
Comment 4 Mike 2016-06-15 21:03:09 UTC
I just upload to "Microsoft.NETCore.UniversalWindowsPlatform" to "5.2.0" beta version for test,  this problem solved.   So I decide close it.
Comment 5 Mike 2016-06-16 10:37:05 UTC
Don't sure somehow the problem still exists on "Microsoft.NETCore.UniversalWindowsPlatform" to "5.2.0"

I upload the new sample file. please download and check it.
Comment 6 Mike 2016-06-16 10:38:16 UTC
Created attachment 16360 [details]
new version of can't navigate back sample.zip
Comment 7 Mike 2016-10-19 12:10:43 UTC
In the other hand, That's not a BUG. you just need to make sure `this.IsPresented = false;` before you change the main page from master details page to other page.