MVVM Hands-on-lab-阿里云开发者社区

开发者社区> 开发与运维> 正文
登录阅读全文

MVVM Hands-on-lab

简介:  关于MVVM的一个动手实验,在 VS2010可以直接使用和体验。 具体参考:  http://visualstudiogallery.msdn.microsoft.com/af12ce3b-8337-4bbb-853f-9fdad7105ec8  Introduction to Model-...
 关于MVVM的一个动手实验,在 VS2010可以直接使用和体验。

具体参考: 

http://visualstudiogallery.msdn.microsoft.com/af12ce3b-8337-4bbb-853f-9fdad7105ec8 

Introduction to Model-View-ViewModel

This hands-on-lab is intended to be an introduction to the Model-View-ViewModel (MVVM) pattern. It integrates directly inside Visual Studio, with documentation, examples and even automatic code snippet copying all in one place. Although there are other MVVM tutorials available on the web, few take the time to walk through the pattern step-by-step using examples that are easy to understand, and illustrate the benefits of MVVM in a concrete way.

Objectives

  • The motivation and benefits of MVVM
  • The basics of the MVVM pattern
  • How to transform an event-based WPF application into one using MVVM
  • How to write unit tests in an MVVM application
  • It is not intended to be a replacement for larger MVVM community libraries

Exercises

  1. Creating a traditional event-based application
  2. Refactoring the application to use MVVM
  3. Unit Testing the MVVM application 

Getting Started

  • Download the VSIX file
  • Open the file
  • Start Visual Studio 2010 (or restart if already running)
  • Create a new project using the template in the "Intro to MVVM" folder

Technical Requirements

  • C#
  • Basic WPF experience

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

分享: