码迷,mamicode.com
首页 > Web开发 > 详细

MVVM's Nature and Advantage over MVC

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

标签:style   color   strong   name   for   c   

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

标签:style   color   strong   name   for   c   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!