Windows Phone (WP) Question: Download Windows Phone PDF

How to detect if my application is exiting so I can save state?

Tweet Share WhatsApp

Answer:

You can listen to Application.Exit, but this might be too late most of the time. You should listen for the Pause event and save your state there.

Download Windows Phone PDF Read All 82 Windows Phone Questions
Previous QuestionNext Question
How to restart or shutdown my application programmatically?How to pin an app on the emulator?