How to detect if my application is exiting so I can save state?
Answer Posted / diana
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.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
On april ctp refresh, splashscreen appears for 3 seconds and disappears (even if my page is not fully loaded)?
Explain how to identify a device or a user?
Can I use my phone as a boot device?
Tell me is asp.net forms authentication supported?
Tell me in my code the method marked by [ondeserialized] is never called after deserialization. Is this a known issue?
What is windows phone media support?
Some images look different when synced to the device and read programmaticaly. Do decoders change these?
Will texttrimming property be available on textblock?
Are there apis to read rss/atom feeds?
Explain how to edit location for weather?
How the volume work between apps and hardware buttons on the device?
Can we intercept the search button to do an app specific search?
explain the best way to detect that I am in design-mode in expression blend or visual studio?
Suppose my site is down, and async calls are taking too long to timeout. How can I set a reasonable timeout?
is there a way to know if my code is running on emulator or device?