首页 > Web开发 > 详细

MVVM's Nature and Advantage over MVC

时间:2014-06-28 10:07:00      阅读:362      评论:0      收藏:0      [点我收藏+]

In MVC, "C"(controller) must hard refereces a variable‘s name of UI elements from View. Therefore, changes in View will domino "C" code changes.

 

In MVVM, because of "Data Binding" mechanism, "C"(controller, or ViewModel) don‘t hard references a variable‘s name of UI elements from View. You can easily config data bindings in XAML/WPF. So, changes in View won‘t domino "C" code changes.

MVVM's Nature and Advantage over MVC,布布扣,bubuko.com

MVVM's Nature and Advantage over MVC

原文:http://www.cnblogs.com/linghuaichong/p/3810929.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!