- Any suggestions on a @WindowsPhone to replace an HTC Trophy? Similar size desirable. Thanks. 6 days ago
Thoughts about Windows, TV and technology in general
One of the major differences in page navigation between Windows Phone 7 and Windows 8 “Modern UI” apps is that the latter allows you to pass an object to the page whereas Windows Phone 7 is pretty much limited to simple items because navigation is done in the form of a URL.
Unfortunately, it turns out that while passing objects to a page does work, it causes a problem with the SuspensionManager because the object cannot be serialized. If you try, the call that SuspensionManager makes to Frame.GetNavigationState() results in an exception.
This took me a while to figure out (mainly because I’d forgotten that I’d been extending my code by passing objects to the pages) but also because I didn’t read the debug output closely enough to see this message:
WinRT information: GetNavigationState doesn’t support serialization of a parameter type which was passed to Frame.Navigate.
So, the upshot is that if you’ve written a Windows Phone app, you can pretty much stick to the same navigation methodology, passing simple objects to the page.
Reference: Microsoft Connect