Saving and Restoring State in Windows Store Apps




Visual Studio Toolbox (HD) - Channel 9 show

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