Creating Applications Using The Model-View-ViewModel (MVVM) Pattern

50 %
50 %
Information about Creating Applications Using The Model-View-ViewModel (MVVM) Pattern
Technology

Published on August 19, 2009

Author: mattcasto

Source: slideshare.net

Description

Need a new acronym for your resume? The Model-View-ViewModel (MVVM) pattern is a variation of Model-View-Presenter (MVP) that is tailored for modern UI development platforms where the View is the responsibility of a designer rather than the developer. This has lead to the pattern becoming very popular with WPF and Silverlight application developers lately. This presentation will walk you through creating a business application from scratch in both WPF and Silverlight using the MVVM pattern.

Creating Applications using the Model-View-ViewModel Pattern Matt Casto http://google.com/profiles/mattcasto

Developing Software is HARD

Developing Software is HARD

Patterns Help … but its still HARD!

Model – View – ViewModel

Model – View – Controller

Model – View – Controller Regarded as the first pattern to seperate UI, Data & Logic concerns Controller handles all logic, including Mouse & Keyboard events

Model – View – Presenter

Model – View – Presenter Variation of MVC Tailored for modern UI that handles Mouse & Keyboard events better Presenter depends on View

Presentation Model

Presentation Model Published by Martin Fowler in 2004 View is a rendering of the Presentation Model

Presentation Model “Probably the most annoying part of Presentation Model is the synchronization between Presentation Model and view. It’s simple code to write, but I always like to minimize this kind of boring repetitive code. Ideally some kind of framework could handle this, which I’m hoping will happen someday with technologies like .NET’s data binding.” – Martin Fowler

Model

Model – Your Data

Model – Your Data Entities Service Proxy POCO

Model – Your Data View

Model – Your Data View – User Interface

Model – Your Data View – User Interface XAML (WPF) XAML w/ Code Behind (Silverlight)

Model – Your Data View – User Interface ViewModel

Model – Your Data View – User Interface ViewModel – The View’s Model

Model – Your Data View – User Interface ViewModel – The View’s Model State Operations Not Dependent on the View

You’re probably already doing something very close to this

You probably could be doing something very close to this

Why do I care about MVVM?

Why should you care about MVVM?

Patterns are a set of guidelines Patternsare not a set of rules

Benefits of MVVM

Benefits of MVVM Loose CouplingTestable CodeMaintainable Code

Loose Coupling

Testable Code

Maintainable Code

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Creating Applications Using The Model-View-ViewModel (MVVM ...

Need a new acronym for your resume? The Model-View-ViewModel (MVVM) pattern is a variation of Model-View-Presenter (MVP) that is tailored for modern UI ...
Read more

5: Implementing the MVVM Pattern Using the Prism Library 5 ...

... of the application. Using the MVVM pattern, ... for implementing the MVVM pattern and ... see Using the Model-View-ViewModel (MVVM) pattern in ...
Read more

WPF And The Model View View Model Pattern - NullSkull.com

... WPF application using the Model-View-ViewModel (MVVM) ... The Model View View Model Pattern. ... to be used for a WPF application that I will be creating.
Read more

Developing a Windows Phone Application using the MVVM Pattern

... Phone Application using the MVVM Pattern. ... Model-View-ViewModel (MVVM) pattern; ... By creating and providing the same application ...
Read more

WPF Tutorial | Model-View-ViewModel Pattern

The Model-View-ViewModel Pattern How the MVVM pattern ... of using the DataContext ... and early WPF applications. MVVM - Model-View-ViewModel.
Read more

Simple MVVM Pattern in WPF - C# Corner - Developers and IT ...

... of the MVVM pattern in WPF. The Model View ViewModel ... MVVM is a way of creating client ... ListBox using WPF; Silverlight Application With MVVM, ...
Read more

A Practical Quick-start Tutorial on MVVM in WPF - CodeProject

This article gives a practical quick-start tutorial on MVVM in ... The MVVM (Model-View-ViewModel) Design Pattern is a ... creating a WPF MVVM application ...
Read more

Using the Model-View-ViewModel (MVVM) pattern in Hilo ...

Early in the project we decided to adopt the Model-View-ViewModel (MVVM) pattern for ... see Creating and ... Phone Application using the MVVM Pattern.
Read more

c# - MVVM: Tutorial from start to finish? - Stack Overflow

I'm a C#/Windows Forms programmer with more than 5 years experience. I've been investigating WPF using the MVVM (Model-View-ViewModel) design pattern.
Read more