Building an Automatic State Preservation System

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 ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.