i want to know what are your strategies for saving state in a windows phone 7 (wp7) app. when i say state, i mean the model-view state of each page in the stack.
recently, i asked a question at, problems with tombstoning in WP7, cannot tell if i need to restore or instantiate/query new data, and the solution works. however, this approach seems to be ad-hoc and/or page-specific only. the code doesn't save the states of the pages preceding it.
it's my understanding that when the app is activated or deactivated, you are supposed to handle restore or backup of the app's state, respectively. the generated code-behind for App.xaml.cs generates the methods
private void Application_Activated(object sender, ActivatedEventArgs e)
private void Application_Deactivated(object sender, DeactivatedEventArgs e)
how are we to take advantage of these methods to save an applications full state when being tombstoned? i haven't found a good tutorial yet online.
any help is appreciated.