I just completed the Getting Started Part 4:
http://msdn.microsoft.com/en-us/library/windows/apps/jj655411.aspx
When I run the app, and do the following (last step):
Press F5 to build and run the app. Navigate to the photo page, and click the "Get photo" button to launch the
FileOpenPicker and pick a file. Now, when the app is suspended, terminated, and restored, the image is re-loaded.
...I don't get the expected results. For example, navigating back to the MainPage, then back to the PhotoPage reveals that the image has not been saved.
I set a breakpoint and found that SaveState seems to be properly saving mruToken, but LoadState is unable to get past the first if statement:
if (pageState != null && pageState.ContainsKey("mruToken"))
To check my work, replaced my PhotoPage.xaml.cs code with the code here:
http://msdn.microsoft.com/en-us/library/windows/apps/jj676796.aspx
Same problem. The image is not re-loaded.
Is anyone else experiencing this?
"We're all in it together, kid." - Harry Tuttle, Heating Engineer