代码改变世界

MVVM in Depth

2013-10-02 05:06  muzinian  阅读(440)  评论(0编辑  收藏  举报

这篇开始粗略的介绍了软件开发中松耦合的概念并讲述了使用MVC、MVP和MVVM三种模式达到松耦合。然后分析了这三种模式适用范围,其中:

MVC(Model-View-Controller)适用于web (ASP.NET) forms


图一:MVC architecture

MVP(Model-View-Presenter)适用于WindowsForms

 

图二:MVP architecture

MVVM(Model-View——viewmodel)适用于WPF/Silverlight Applications

 

图三:Detailed MVVM Architecture

三层架构中各个层和他们的关系

图四:3-Layer Architecture along with MVC, MVP and MVVM