Presentation is loading. Please wait.

Presentation is loading. Please wait.

Paul D. Sheriff PSheriff@pdsa.com www.pdsa.com DEV216 MVVM Made Easy Paul D. Sheriff PSheriff@pdsa.com www.pdsa.com.

Similar presentations


Presentation on theme: "Paul D. Sheriff PSheriff@pdsa.com www.pdsa.com DEV216 MVVM Made Easy Paul D. Sheriff PSheriff@pdsa.com www.pdsa.com."— Presentation transcript:

1 Paul D. Sheriff PSheriff@pdsa.com www.pdsa.com
DEV216 MVVM Made Easy Paul D. Sheriff

2 Paul.About Paul D. Sheriff (psheriff@pdsa.com) Developer Tools
President of PDSA, Inc. Author, Speaker, Architect Custom Software Development, Developer Tools Software Audits Developer Tools Haystack Code Generator .NET Productivity Framework

3 Agenda What is MVVM? Why use MVVM? Demos
4/24/ :51 AM Agenda What is MVVM? Why use MVVM? Demos Starting with little Data Binding Add More Data Binding Add a View Model © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.

4 What is MVVM? Model-View-ViewModel Model = Data Class
View = User Interface ViewModel (VM) UI binds to this class VM consumes services of Model VM may expose services/properties of Model

5 What is MVVM? View knows nothing about Model
Model knows nothing about View Model knows nothing about View Model View Model knows nothing about View Communication from View to VM is via data binding Lists for List Boxes and Grids IsEnabled properties for Buttons Data for Text Boxes

6 Why Use MVVM Separate UI / Business / Data Logic
Be able to swap out UI Leave business rules/data logic in place ASP.NET to Silverlight WPF to Windows Phone etc. Unit Testing Write less UI code

7 Demos Data Binding Review Data Binding using Class Searching Sample
ViewModel for Add/Edit/Delete screen

8 Summary MVVM is easy Just need an additional class
Helps to understand the XAML data binding model Great for testing and re-usability Don’t worry about being “100% code-behind free”

9 Thank You Sign up for Haystack Webcasts
Sign up for Paul Sheriff's Inner Circle Lifetime membership Over $2000 worth of ebooks, video, etc.

10 Sample Code http://www.pdsa.com/TechEd ** Haystack Special **
Get Free Silverlight Video Silverlight XAML for the Complete Novice - Part 1 ** Haystack Special ** Special Price: $499 Use Code: TECHED12 Valid until: 08/01/12

11 DEV Track Resources Visual Studio Home Page :: Somasegar’s Blog :: Jason Zander’s Blog :: Facebook :: Twitter ::

12 Resources Learning TechNet http://northamerica.msteched.com
Connect. Share. Discuss. Microsoft Certification & Training Resources TechNet Resources for IT Professionals Resources for Developers

13 Complete an evaluation on CommNet and enter to win!

14 MS Tag Scan the Tag to evaluate this session now on myTechEd Mobile

15 4/24/ :51 AM © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

16 4/24/ :51 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "Paul D. Sheriff PSheriff@pdsa.com www.pdsa.com DEV216 MVVM Made Easy Paul D. Sheriff PSheriff@pdsa.com www.pdsa.com."

Similar presentations


Ads by Google