MVVM survival guide for enterprise architectures in Silverlight and WPF : eliminate unnecessary code by taking advantage of the MVVM pattern, less code, fewer bugs /

Saved in:
Bibliographic Details
Author / Creator:Vice, Ryan.
Imprint:Birmingham : Packt Publishing Ltd., 2012.
Description:1 online resource (491 pages)
Language:English
Subject:
Format: E-Resource Book
URL for this record:http://pi.lib.uchicago.edu/1001/cat/bib/11141994
Hidden Bibliographic Details
Other authors / contributors:Siddiqi, Muhammad Shujaat.
ISBN:9781849683432
1849683433
9781849683425
1849683425
Summary:This book combines practical, real-world examples with all the background material and theory you need The concepts are explained with a practical LOB enterprise application that is gradually built through the course of this book. MVVM offers lots of design choices and the author shows examples of each of these approaches, by changing the code to achieve the same results. This book will be a valuable resource for Silverlight and WPF developers who want to fully maximize the tools with recommended best practices for enterprise development. This is an advanced book and you will need to be familiar with C♯, the .Net framework, and Silverlight or WPF.
Other form:9781849683425
9781849683432
Table of Contents:
  • Cover; Copyright; Credits; Foreword; About the Authors; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Presentation Patterns; The Project Billing sample application; Types of state; History of presentational patterns; Monolithic design; The problems with monolithic design; Data service stub; Monolithic Project Billing sample; ProjectsView; Running the sample; Takeaways; Rapid application development; RAD Project Billing sample; Takeaways; MVC; View; Controller; Model; Layered design; The layers; MVC with layered design; MVC Project Billing sample; Model
  • ControllerView; How it works; Takeaways; Memory leaks; MVP; MVP Project Billing sample; Model; View; Presenter; Main window; How it works; Takeaways; Summary; Chapter 2: Introduction to MVVM; History; Structure; Pure MVVM; View; View Model; WPF and Silverlight enablers; Dependency Properties; Dependency property inheritance; Rich data binding; INotifyCollectionChanged and ObservableCollection; Automatic dispatching; Triggers; Styles; Control Templates; Data templates; Commands; MVVM project billing sample; MVVM design; View Models; Model; Code; ProjectsModel; ProjectViewModel
  • ProjectsViewModelWPF UI; Silverlight UI; Benefits of MVVM; MVVM and humble views; Issues and pain points of MVVM; MVVM Light; Summary; Chapter 3: Northwind
  • Foundations; Northwind requirements; Presentation tier foundation; Locator pattern; Data access tier; Listing the customers; Unit testing getting customers; Using an isolation framework; Adding tabs; Viewing customer details; Viewing details for one customer; Testing CustomerDetailsViewModel; Wiring up the customer list box; Testing ShowCustomerDetails(); Summary; Chapter 4: Northwind-Services and Persistence Ignorance
  • Adding a Service LayerIntegrating the Service Layer; Persistence ignorance and custom models; Trade-offs of generated models; Adding persistence ignorance; Adding unit tests; Summary; Chapter 5: Northwind-Commands and User Inputs; Pure MVVM; Making it easier with frameworks; Updating customer details; Testing and updating customer details; Gestures, events, and commands; InputBindings; KeyBinding; MouseBinding; Using code behind; Event to command; Attached Behavior; Using MVVM Light; Summary; Chapter 6: Northwind-Hierarchical View Model and IoC; Adding orders to customer details
  • Service layerApplication layer; Presentation layer; View Models; Views; Take aways; Viewing order details; ToolManager; Inversion of Control frameworks; IoC designs; Adding an IoC container to Northwind; Order details; Summary; Chapter 7: Dialogs and MVVM; Should we make a compromise?; Dialog service; Using DataTemplates with DialogService; Convention over configuration; Mediators; Attached behaviors; Summary; Chapter 8: Workflow-based MVVM Applications; WF for business rules execution; Handling delays in rules execution; WF for controlling application flow; Summary; Chapter 9: Validation