首页 | 本学科首页   官方微博 | 高级检索  
     

基于Silverlight的RIA系统架构与设计模式研究
引用本文:程国雄,胡世清.基于Silverlight的RIA系统架构与设计模式研究[J].计算机工程与设计,2010,31(8).
作者姓名:程国雄  胡世清
作者单位:深圳大学,师范学院教育信息技术系,广东,深圳,518060
摘    要:为解决适用于RIA应用系统开发的设计模式的问题,分析了基于Silverlight的RIA系统架构,并针对MVC、MVP模式在RIA应用系统开发时存在单元测试困难和耦合度高的问题,提出了引入MVVM模式.该模式由视图、视图模型、模型3部分组成,通过实现INotifyPropertyChanged接口,解决了模型到视图模型的数据传导问题,使模型独立于视图模型;通过实现了ICommand接口,解决了视图中的事件绑定问题,结合数据绑定,使视图模型独立于视图.实例结果表明,采用MVVM模式设计RIA应用系统能够实现界面逻辑和应用逻辑的完全分离,且具备良好的自动化测试能力.

关 键 词:设计模式  模型-视图模型-视图  系统架构  富互联网应用  模型-视图-控制器

System architecture and pattern research of RIA based on silverlight
CHENG Guo-xiong,HU Shi-qing.System architecture and pattern research of RIA based on silverlight[J].Computer Engineering and Design,2010,31(8).
Authors:CHENG Guo-xiong  HU Shi-qing
Affiliation:CHENG Guo-xiong,HU Shi-qing (Department of Educational Technology,Teachers College,Shenzhen University,Shenzhen 518060,China)
Abstract:To solve the problems of the design pattern for rich internet application (RIA) systems development, the silverlight-based RIA architecture is analyzed, according to problems of unit testing and tight coupling when using the model-view-controller (MVC) and the model-view-presenter (MVP) pattern to design RIA systems, the model-view-viewmodel (MVVM) pattern is proposed. This pattern is composed of model, view and viewmodel, the problem of data swap between the model and the viewmodel is resolved by realizing...
Keywords:design pattems  MVVM  system architecture  RIA  MVC
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号