1 / 10

Practical MVVM

Practical MVVM. Joel Cochran. About Me. Expression Blend MVP. INETA Community Champion. MCTS ( WinForms & WPF). http://www.developingfor.net. mailto:joelcochran@gmail.com. twitter: @ joelcochran. http://speakerwiki.org/speakers/joel_cochran. Announcing Blend SIG. Virtual User Group.

adie
Download Presentation

Practical MVVM

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Practical MVVM Joel Cochran

  2. About Me Expression Blend MVP INETA Community Champion MCTS (WinForms & WPF) http://www.developingfor.net mailto:joelcochran@gmail.com twitter: @joelcochran http://speakerwiki.org/speakers/joel_cochran

  3. Announcing Blend SIG Virtual User Group 2nd Wednesday of each month, 2pm EST Videos: http://vimeo.com/blendisg Presenters are deep Blend Experts http://blendsig.groups.live.com twitter: @blendsig Coming soon: http://blendsig.com

  4. My Book! A developer’s guide MEAP available now http://manning.com/cochran Published Fall 2011

  5. MVVM: Practical Magic? • Model, View, ViewModel • Similar to other MVx patterns • Big exception: 2 way communications between View and ViewModel • Allows true separation of concerns • Supports DataBinding • No Code Behind

  6. MVVM Parts: Model The Data Data Services XML Files ADO.NET, LinqToSQL, EF Consumed by ViewModel(s) Unaware of View and ViewModel

  7. MVVM Parts: View The Screen UI and UX Visual Representation of the Data WPF, Silverlight, WP7 Populated by ViewModel(s) Unaware of the Model Technically unaware of the ViewModel

  8. MVVM Parts: ViewModel The Master & The Middleman Communications Management Data formatting Action items Unaware of View

  9. MVVM Parts: ViewModel Model Model Data Source Model Entities Data Access Service ViewModel ViewModel ViewModel ViewModel Data Binding . View View View View Code Behind Code Behind Code Behind

  10. The Practical MVVM Manifesto Must be simple and discoverable Must support Blend Must provide design time data Must be testable

More Related