什么是MVVM模式的问题? [英] What are the problems of the MVVM pattern?
本文介绍了什么是MVVM模式的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
时的模型 - 视图 - 视图模型在WPF用最好的方式?有什么缺点?
Is Model-View-ViewModel the best pattern to use in WPF? Are there any downsides?
推荐答案
下面是对的advantages和MVVM的缺点的,直接从约翰Gossman自己。
Here's a good, short blog post on the advantages and disadvantages of MVVM, straight from John Gossman himself.
他的主要缺点是:
对于简单的用户界面,MV-VM可以是矫枉过正。在大的情况下,它可以是很难设计视图模型前面,以获得一般性适量。数据绑定的所有奇迹是声明,更难比漂亮的东西必须要调试,你只设置断点
"For simple UI, M-V-VM can be overkill. In bigger cases, it can be hard to design the ViewModel up front in order to get the right amount of generality. Data-binding for all its wonders is declarative and harder to debug than nice imperative stuff where you just set breakpoints"
这篇关于什么是MVVM模式的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文