App tombstoning presents a new challenge for developers moving to the Windows Phone platform. As the complexity of your app increases, so too does the task of preserving your app’s transient and persistent state.
For this chapter, I have created an automatic state preservation system, which you are free to use. I intend to continue to refine and integrate it into the open source Calcium project.
The system presented in this section allows you to register properties for state preservation using a custom attribute. In addition, there is an API that uses lambda expressions for registering properties with nonpublic accessors and fields.
Using the system involves registering a property so that it is ...