Saving and Restoring State in Windows Store Apps

Download this episode

Download Video

Description

In this show Robert discusses managing state in Windows Store apps. When a user switches away from an app in Windows 8, Windows suspends the app. When the user switches back to the app, it looks like it was running all along. Windows can terminate a suspended app if it needs to free up memory for other apps or if it needs to save power. When the user starts the app again, he or she will want the app to resume where it left off. Robert shows how to accomplish this by saving and restoring state. He shows what code you need for XAML apps to do this and where that code goes.  

You can find the sample app Robert used here. He also wrote up this topic on his blog.

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.