使用MVVM Light在Windows 8中实现状态处理 [英] Implementing State handling in windows 8 using MVVM Light
问题描述
我如何使用mvvm light来实现状态处理(运行/恢复/终止状态).我面临的主要问题是导航.我完全不受导航堆栈的控制.我如何使用MVVM Light有效管理此问题.
How i can implement state handling (running / resume / Terminate states ) using mvvm light. The major issue i a facing is with Navigation. I am totally uncontrolled with the navigation stack. How i can effectively manage this with MVVM Light.
推荐答案
您可能对开源 Okra App Framework ,可在CodePlex和NuGet上免费使用(免责声明:我是该项目的首席开发人员).这是针对Windows 8应用程序(尤其是那些使用MVVM模式的应用程序)进行的完全设计(并且您仍然可以使用MVVM Light基类来定义视图模型).
You might be interested in the open source Okra App Framework that is freely available on CodePlex and NuGet (disclaimer: I am the lead developer on this project). This has been 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).
它特别有趣,
- 了解Windows 8导航模型的导航管理器
- 导航堆栈,可以在应用程序终止时自动保持其状态
- 一种用于视图模型(通过简单接口)保持其自身状态的机制
- 自动视图和视图模型的构建和连接(默认情况下使用MEF属性)
这篇关于使用MVVM Light在Windows 8中实现状态处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!