state handling in windows 8 using mvvmlight

Aug 6, 2012 at 12:23 PM
Edited Aug 6, 2012 at 12:31 PM

Implementation of state handling in windows 8 using mvvmlight Is there any method avilable in mvvmligt to manage states in WinRT? How I can duplicate the functionality of default Suspensionmanager by using mmvlight? And the second one is about managing navigation cycle ie if I navigated from page A - > B. and the go for suspend and shutdown state. When I re start the application in need to open page B. and while presses back key I need to load A. How I can effectively implement this using MVVM light in my WinRT application?

i copied the question from "" because . i too had the similar doubt. 

Aug 31, 2012 at 2:36 PM
Edited Sep 2, 2012 at 9:57 AM

I wrote this originally for WP7 and have been updating for Win8 RT. It allows you to attach attributes to properties you want to keep in your view models, then the PersistenceManager dehydrates them (serialized to file) when the app is suspended and rehydrates when it resumes.

There are examples for WP7 and Win8, basic MVVM pattern and MVVM Light