实现MVVM的框架有很多,如:
• MVVM Light Toolkit: http://mvvmlight.codeplex.com
• Microsoft Prism http://compositewpf.codeplex.com/
• Calcium SDK http://calciumsdk.net/
• Caliburn http://caliburn.codeplex.com/
•Caliburn Micro http://caliburnmicro.codeplex.com/
• Silverlight.FX: http://projects.nikhilk.net/SilverlightFX
• nRoute: http://nroute.codeplex.com
,此处选择两个比较常见的分析一下
MVVM Light | http://www.galasoft.ch/mvvm/getstarted http://mvvmlight.codeplex.com 轻量级框架,很简单 |
Prism | http://compositewpf.codeplex.com 前身Composite Application Guidance for WPF and Silverlight 重量级,初次使用有些复杂 |
MVVM Light Toolkit or Prism