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

Slides:



Advertisements
Similar presentations
Creating Robust, Maintainable Coded UI Tests with Visual Studio 2012 Eric Maino Senior Developer Microsoft Corporation DEV312.
Advertisements

What's New in Microsoft Deployment Toolkit 2012 Michael Niehaus Senior Program Manager Microsoft Corporation.
Introducing the New Visual Studio 2012 Unit Testing Experience Peter Provost Sr. Program Manager Lead Microsoft Corporation DEV214.
Working on an Agile Team with Visual Studio 2012 and Team Foundation Server 2012 Peter Provost Sr. Program Manager Lead Microsoft Corporation DEV318.
Introducing the New Visual Studio 2012 Unit Testing Experience Peter Provost Sr. Program Manager Lead Microsoft Corporation DEV214.
Building HTML and JavaScript Apps with KnockoutJS and MVVM DEV361.
Troubleshooting Windows 7 Deployments Michael Niehaus Senior Program Manager Microsoft Corporation.
Customizing the User State Migration Tool Michael Niehaus Senior Program Manager Microsoft Corporation WCL322.
Dev-Ops Best Practices on the Microsoft Stack Victor Mushkatin Group Program Manager Microsoft Corporation DEV363.
Making Agile Estimation Work Joel Semeniuk and Stephen Forte AAP309.
Deep Dive into the Team Foundation Server 2012 Agile Planning Tools Gregg Boer Principal Program Manager Microsoft Corporation.
The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies AAP301.
Visual Studio Tips & Tricks Dustin Campbell Microsoft Corporation Scott Cate EventDay.com DEV319.
Identify & Fix Performance Problems with Visual Studio 2012 Ultimate Benjamin Day Benjamin Day Consulting, Inc. benday.com/blog
Delivering KPIs with Microsoft SQL Server Analysis Services
Making the most of Search in Microsoft SharePoint Online Corey Roth Applications Architect Infusion OSP338.
WCL309. Demo.
Implementing Scrum Using Team Foundation Server Richard Hundhausen President, Accentient DEV212.
Implementing Team Foundation Server in the Enterprise: Guide to a Successful Implementation Jeff Levinson Solutions Architect The Boeing Company DEV343.
Building Windows 8 Apps for the Enterprise Robert Green Technical Evangelist Microsoft Corporation.
App Compat for Nerds: Understanding, Troubleshooting, and Fixing Busted Apps chris jackson principal consultant microsoft corporation WCL402.
Optimizing Microsoft SQL Server Analysis Services for Big Data Adam Jorgensen Microsoft Corporation.
SIM314 Introduction Transport Layer Summary Network Layer.
Dev-Ops Best Practices on the Microsoft Stack Victor Mushkatin Group Program Manager Microsoft Corporation DEV363.
Exploring SQL Server Data Tier Applications Bob Beauchemin Developer Skills Partner SQLskills DBI309.
Building Metro style UIs Paul Gusmorino Lead Program Manager Microsoft Corporation DEV354.
Building Metro style apps with HTML and JavaScript Paul Gusmorino Lead Program Manager Microsoft Corporation.
Continuous Feedback in Agile Teams Justin Marks Senior Program Manager Microsoft Corporation Sebastian Holst Chief Marketing Officer PreEmptive Solutions.
Best Practices and Lessons Learned: Private Cloud Deployment in the Enterprise Ryan Sokolowski Senior Consultant, Microsoft Consulting Services Microsoft.
Building Metro style apps with HTML and JavaScript Paul Gusmorino Lead Program Manager Microsoft Corporation.
Visual Studio Tips & Tricks Dustin Campbell Microsoft Corporation Scott Cate EventDay.com DEV319.
Real World High Availability and Site Resilience Design Robert Gillies Solution Architect Microsoft Corporation EXL308.
DPR302.
ASP.NET for Mobile and Tablet Development Damian Edwards Senior Program Manager Microsoft Corporation.
Visual C#/Visual Basic: Becoming a Guru with Existing Features Peter Ritchie Principle Peter Ritchie Inc. Software Consulting DEV325.
WCL304.
DPR305. Controller Model View Client Business Objects Server Business Objects Data.
Creating LOB Metro style Apps in XAML Using Blend and Visual Studio Jeffrey Ferman Program Manager Microsoft Corporation DEV369.
Continuous Delivery of Windows Azure Cloud Services (DEV310) Paul Yuknewicz Principal Program Manager Lead, Visual Studio Microsoft.
Identify & Fix Performance Problems with Visual Studio 2012 Ultimate Benjamin Day Benjamin Day Consulting, Inc. benday.com/blog
Demystifying Team Foundation Server Builds Mickey Gousset Principal Consultant Infront Consulting Group DEV342.
What’s New in WF4.5 Dave Cliffe Program Manager Microsoft Corporation.
Real World Developer Testing with Visual Studio 2012 David Starr Chief Software Craftsman Scrum.org Peter Provost Program Manager Lead Microsoft AAP401.
VIR326. Dell Compellent always puts the right data in the right place at the right time at the right cost. That’s Fluid Data.
DEV351.
WCL328 - Windows Intune for the Enterprise David Nudelman Senior Consultant – Microsoft MVP OCSL - UK.
App Controller Tabrez Mohammed Yuan Zheng Program Managers Microsoft Corporation MGT303.
The Ultimate Guide to Building Wireless Network Security Hasain Alshakarti Senior Security Advisor, Microsoft MVP Enterprise Security TrueSec Inc SIA307.
A Lap Around Windows Presentation Foundation (WPF) 4.5 Pete Brown | XAML and Gadget Guy Microsoft Corporation DEV335.
Cloud-Ready Data Services. cloud data services.
Advanced Microsoft SharePoint 2010 Upgrade Troubleshooting Shane Young – Todd Klindt SharePoint Nerds Rackspace OSP339.
ADO.NET Entity Framework 4.3 for Real Web Applications Adam Tuliper Software Architect Cegedim DEV215.
Introduction to Kanban Steven Borg, Northwest Cadence Co-founder and Strategist AAP204.
Async Made Simple in Windows 8, with C# and Visual Basic Alex Turner Program Manager VB/C# Compilers Microsoft Corporation DEV332.
Integrating SQL Server FileTables, Property Search, and FTS/Semantic Search Bob Beauchemin Developer Skills Partner SQLskills.
Demystifying Forefront Edge Security Technologies – TMG and UAG Richard Hicks Director – Sales Engineering Celestix Networks, Inc. SIA208.
Going Beyond F11: Debug Better and Faster with Visual Studio 2012 Brian A. Randell Senior Consultant MCW Technologies DEV317.
11/21/2018 4:57 AM SIA303 Advanced Persistent Threats (APT): Understanding the New Era of Attacks! Marcus Murray Security Team Manager, Microsoft MVP –
Jason Zander Unplugged
Advanced IntelliTrace in Production
DEV410: Deep Dive into Team Foundation Server 2012 Reporting
Building Awesome Metro style HTML apps in Blend
Integrating with Windows 8 Experiences
Building Business Applications in LightSwitch
Using Windows Runtime and SDK to build Metro style apps
Creating and Consuming OData Services for Business Applications
Sayed Ibrahim Hashimi Program Manager Microsoft Corporation
Brandon Bray Principal Group Program Manager Microsoft Corporation
What’s New in Visual Studio LightSwitch
Building RESTful services using OData
Presentation transcript:

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

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

Agenda What is MVVM? Why use MVVM? Demos 4/24/2017 10: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.

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

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

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

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

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”

Thank You Sign up for Haystack Webcasts http://www.pdsa.com/webcasts Sign up for Paul Sheriff's Inner Circle Lifetime membership Over $2000 worth of ebooks, video, etc. http://www.PaulSheriffInnerCircle.com

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

DEV Track Resources Visual Studio Home Page :: http://www.microsoft.com/visualstudio/en-us Somasegar’s Blog :: http://blogs.msdn.com/b/somasegar/ Jason Zander’s Blog :: http://blogs.msdn.com/b/jasonz/ Facebook :: http://www.facebook.com/visualstudio Twitter :: http://twitter.com/#!/visualstudio

Resources Learning TechNet http://northamerica.msteched.com Connect. Share. Discuss. http://northamerica.msteched.com Microsoft Certification & Training Resources www.microsoft.com/learning TechNet Resources for IT Professionals http://microsoft.com/technet Resources for Developers http://microsoft.com/msdn

Complete an evaluation on CommNet and enter to win!

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

4/24/2017 10: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.

4/24/2017 10: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.