What is the best approach in passing a complex object between Pages in a Windows Store App? In the MSDN it states that only basic types of objects can be passed in order to serialize the session state, but I don’t intend to serialize session state since my app will just log out and ask for log in credentials when the app is launched the next time. I plan to serialize my data when the user either hits the log out or save buttons.
Share
Let’s say that you are passing a Person object to the PersonDetailPage. Then here is what you would have on your MainPage (or any other page).
Assuming that you are working with a GridView:
Then on the PersonDetailPage, on the LoadState() you will verifiy if a parameter was passed, and then atribute that parameter to a variable.