首页> 中文期刊> 《微型电脑应用》 >MVVM模式分析与应用

MVVM模式分析与应用

         

摘要

MVVM模式是自2005年微软WPF和Silverlight架构师John Gossman在其博客中首次提出的,它利用了WPF的XMAL和DataBinding,使软件的架构可以分离成为View、Model和ViewModel 3层,使数据和界面得到很好的分离,达到软件设计中的“高内聚,低耦合”的目标.和传统的MVC模式相比,MVVM是其在WPF中的演化和升级.以一个幼儿早教学校的客户管理系统为实例,对MVVM模式进行分析,讨论了它的整体构架,对其各个层次进行了解析,讲述其特点,论述了它的工作原理,并将其与传统的MVC模式进行对比,分析两者的异同,阐述了MVVM模式的优势和不足.%MVVM pattern is first proposed by John Gossman, architect of WPF and Silverlight in Microsoft, in his blog in 2005. It divides the software architecture into three levels, View, Model and ViewModel, with the XAML and DataBinding in WPF. This makes the Data and GUI well separated, and achieves the goal of "highly cohesive and low coupling" . MVVM pattern is the evolution and upgrade in WPF comparing to the traditional MVC pattern. This paper introduces the MVVM pattern, discusses its architecture, analyses its layers, talks about its features, discourses its working principle via a custom relationship management system in an early education school, compares the differences and similarities to the classic MVC pattern, and describes the advantages and disadvantages of MVVM pattern.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号