O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required