Implement state handling on Windows 8 using MVVM Light

How can I implement state management (start / resume / end state) using mvvm light. The main problem I am facing is Navigation. I do not completely control the navigation stack. How can I effectively manage this with MVVM Light.

+5
source share
2 answers

You may be interested in the open Okra App Framework , which is freely available on CodePlex and NuGet (disclaimer: I am the lead developer on this project). It was designed from the ground up for Windows 8 applications, in particular those that use the MVVM pattern (and you can still use the MVVM Light base classes to define your view models).

Of particular interest, which he includes,

  • A navigation manager who understands the navigation model of Windows 8
  • A navigation package that can automatically save its state when the application terminates
  • View-model engine for saving its state (via a simple interface)
  • Automatically build views and views and create postings (default using MEF attributes)
+1

, GridView SplitView SuspensionManager.cs Common. RegisterFrame, , .

SuspensionManager App.OnLaunched(App.xaml.cs), App.OnSuspending.

, LayoutAwarePage.cs, . LayoutAwarePage, Portrait and Snapped. , SuspensionManager. , , , LoadState .

, , "SuspensionService", ViewModels .

+4

All Articles