WinRT State Management Tutorial
WinRT applications transition between a number of different states. Closed applications transition to running applications. Running applications can be suspended or closed. Suspended applications can be resumed or terminated.
Understanding these states and maintaining correct Application and Session State is critical to the UX. In this tutorial, we explain the various states and the transitions between them. We build a simple winRT application that manages Application State, such as preferences, using the new “roaming” feature of winRT and Windows 8.
The sample application also shows how to save and restore Session State that includes the data a user has entered when an application is suspended, terminated, and then restarted within a session.
This tutorial demonstrates all the concepts and code associated with state management. In part 2 of this series, state management of an application with a more complex UI will be demonstrated.