MVC/MVP/MVVM 什么鬼? [英] MVC / MVP / MVVM What the Heck?

查看:27
本文介绍了MVC/MVP/MVVM 什么鬼?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近参与了一个 .Net WPF 项目,以构建一个零售销售点系统,我第一次使用了 MVP 模式.我花了一点时间来理解方法的改变,但一旦我这样做了,我认为这个概念发生了变化!

I recently worked on a .Net WPF project to build a retail point of sale system where I used the MVP pattern for the first time. It took me a little while to wrap my head around the change of approach but once I did that I thought that the concept rocked!

我的问题是:MVC、MVP 和 MVVM 之间有什么区别?如果有明显的区别,是否有关于何时应该使用一种模式而不是另一种模式的指导方针?

My question is this: what is the distinction between MVC, MVP and MVVM? If there is a clear distinction, are there guidelines as to when you should use one pattern over another?

如果有人可以提供这方面的指导,或指出解释差异的文章,我将不胜感激.

If anyone can offer guidance on this, or point to article that explains the differences I'd very much appreciate it.

推荐答案

Microsoft 的应用程序架构指南描述了 MVC 和 MVP,并探讨了两者之间的差异.

Microsoft's Application Architecture Guide describes MVC and MVP, and explores the differences between the two.

http://www.codeplex.com/AppArch

这篇 MSDN 文章描述了 MVVM 及其演变.

This MSDN article describes MVVM and it's evolution.

http://msdn.microsoft.com/en-us/magazine/dd419663.aspx

这篇关于MVC/MVP/MVVM 什么鬼?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆