摘要
Abstract
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.关键词
MVVM模式/WPF/数据绑定/XAML/MVC模式Key words
MVVM Pattern/ WPF/ Data Binding/ XAML/ MVC Pattern分类
信息技术与安全科学