MVVM编程模式混乱 [英] MVVM programming pattern confusion

查看:67
本文介绍了MVVM编程模式混乱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了很多关于如何使用MVVM模式的研究,其中包括查看本网站,谷歌和MSDN上的文章,但是,我仍然对如何制作和连接你的模型,视图和查看模型。有人可能会解释一下MVVM模式的每个部分是什么,现在为什么它是首选的,并且使用这种模式可以获得一个非常简单的代码示例?

I have done quite a bit of research on how to use the MVVM pattern which includes looking at articles on this website, google, and MSDN, however, I am still confused on how to make and connect your Model, View, and View Model. Could someone perhaps explain what each portion of the MVVM pattern is, why it is preferred nowadays, and perchance an extremely simple code sample utilizing this pattern?

推荐答案

如何连接几乎与这三个部分一样重要。这是一个整体架构。



坦率地说,我倾向于认为对某些知名架构的真正理解只有创建一些架构的经验,或许不那么普遍和特定于应用程序。但是,我不能坚持认为这种观点应该是共同的。我认为这篇文章足够清楚地解释了这个架构(参见参考文章): http://en.wikipedia.org/wiki/Model_View_ViewModel [ ^ ]。



另请参阅: https://msdn.microsoft.com/en- us / magazine / dd419663.aspx [ ^ ]。



如果你认为你需要一些更好的解释,也许你需要解释为什么你觉得有些快速专门为您写的答案应该比完整的书面文章更好地解释这个问题。或者,您需要提出一些其他问题,更具体地说,解决您的一些特殊问题。在这种情况下,最好付出更多努力,尝试一些实验应用程序开发并向我们解释 你尝试了什么 到目前为止。



祝你好运。

-SA
"How to connect" is nearly as important as those three parts. This is one holistic architecture.

Frankly, I tend to think that true understanding of some well-known architectures only comes with experience in creation some architectures, perhaps not so universal and application-specific. However, I cannot insist that this view should be common. I think this article explains this architecture clearly enough (see also the referenced articles): http://en.wikipedia.org/wiki/Model_View_ViewModel[^].

See also: https://msdn.microsoft.com/en-us/magazine/dd419663.aspx[^].

If you think you would need some better explanation, perhaps you need to explain why do you feel that some Quick Answer written specially for you should explain the matter better than thoroughly written articles. Or, rather, you would need to ask some other question, more specific, addressing some of your particular concerns. In that case, it would be better to pay more effort, try some experimental application development and explain to us what have you tried so far.

Good luck.
—SA


这篇关于MVVM编程模式混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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