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

Saving Transient State

The Deactivated event provides an application with the opportunity to save its transient and persistent state.

Note

Saving the transient state of a PhoneApplicationPage should be performed in its OnNavigatedFrom method, as you see later in the chapter.

The goal is to enable restoration of the application to its prior state before being tombstoned. It should be assumed, however, that when the Deactivated event occurs, that the application is going to be closed, moving to the closed state. The user may, after all, opt not to resume the application, or may use the Start Experience to re-launch the application, rather than using the hardware Back button to return to the application. Moreover, if the user launches many other ...

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