MVVM - Model View ViewModel
Upcoming SlideShare
Loading in...5
×
 

MVVM - Model View ViewModel

on

  • 2,063 views

An introduction to MVVM design pattern

An introduction to MVVM design pattern

Statistics

Views

Total Views
2,063
Views on SlideShare
1,636
Embed Views
427

Actions

Likes
5
Downloads
68
Comments
0

30 Embeds 427

http://dareen-h.blogspot.com 208
http://dareen-h.blogspot.ae 72
http://dareen-h.blogspot.sg 32
http://www.linkedin.com 13
http://www.dareen-h.blogspot.ae 13
http://dareen-h.blogspot.ie 9
http://dareen-h.blogspot.co.uk 8
http://dareen-h.blogspot.ru 8
http://dareen-h.blogspot.com.br 8
http://www.dareen-h.blogspot.com 7
http://dareen-h.blogspot.fr 7
http://dareen-h.blogspot.in 7
http://dareen-h.blogspot.com.es 7
http://dareen-h.blogspot.de 5
http://dareen-h.blogspot.com.au 4
http://dareen-h.blogspot.it 3
http://dareen-h.blogspot.hk 2
http://dareen-h.blogspot.ca 2
https://twitter.com 1
http://dareen-h.blogspot.fi 1
http://dareen-h.blogspot.com.tr 1
http://www.dareen-h.blogspot.de 1
http://dareen-h.blogspot.tw 1
http://dareen-h.blogspot.com.ar 1
http://dareen-h.blogspot.co.at 1
http://dareen-h.blogspot.co.nz 1
http://dareen-h.blogspot.co.il 1
http://dareen-h.blogspot.se 1
http://www.dareen-h.blogspot.co.uk 1
http://feeds.feedburner.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    MVVM - Model View ViewModel MVVM - Model View ViewModel Presentation Transcript

    • Intro to MVVM Dareen Alhiyari Senior Consultant Dareen@Softact.com Dareen.Alhiyari@gmail.com
    • What is MVVM• MVVM is a design pattern• MVVM stands for Model-View-ViewModel
    • Design Patterns• Design patterns are a set of guidelines• Design patterns are Not a set of rules
    • ModelIt is your data or classes that represententities in your application. It normallycontains no WPF-specific code. • Entity • Service Proxy • POCO (Plain Old CLR Object)
    • ViewThis is the User Interface element visible tothe user. Its DataContext is its ViewModel. • XAML (WPF) • XAML with Code Behind (Silverlight)
    • ViewModelIt contains all the data that needs to bedisplayed and procedures to modify the modelat will. The magic about MVVM is that theViewModel knows nothing about the View. • State • Operations • Not dependent on the view
    • MVVM Relations ViewModelCommands Binding View Model
    • Loosely Coupled• The View knows the ViewModel but the ViewModel does not know the View.• You can very easily replace the View without affecting the ViewModel.• This is very useful in Developer/Designer teams where the Developer improves the ViewModel and the Designer enhances the View.
    • User InteractionWe always have had commands in WPF. MVVMleverages on this feature. Instead of writing eventhandling code for button clicks, we bind the buttons(or MenuItems) in the View to Commands in theViewModel.
    • Commands
    • Commands
    • MVVM vs. MVC (Model-View-Controller)MVVM MVC View View * * 1 1ViewModel Controller Model Model
    • Benefits of MVVM• Loose coupling• Testable code• Maintainable code
    • Some MVVM FrameworksCheck out this handy tool to compare MVVM frameworks: MVVM Comparison Tool - Silverlight• PRISM (Microsoft) • Core MVVM• MVVM Light (Laurent Bugnion) • Onyx• WPF Application Framework • nRoute• Chinch • MVVM Foundation• Caliburn Micro • How to build your own MVVM Framework
    • Thank you! Dareen Alhiyari Senior Consultant Dareen@Softact.comDareen.Alhiyari@gmail.com