Your SlideShare is downloading. ×
MVVM
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

MVVM

1,635
views

Published on


1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total Views
1,635
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
44
Comments
1
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. ModelViewViewModel
  • 2. Felipe Pimentel
    Felipe Pimentel
  • 3. Felipe Pimentel
    FelipePimentell
    felipejfp@hotmail.com
    fpimentel88
    felipe.pimentel@2pc.com.br
    http://felipepimentel.net
  • 4. Felipe Pimentel
  • 5. Agenda
    O que é?
    O que faz?
    Quando usar?
    Variações?
    Light Toolkit
    Demo!!!
  • 6. “Mais outro M* alguma coisa?”
    MVP
    MVC
    MV?????
  • 7. O que é MVVM?
    Padrão de arquitetura de apresentação
    Separando responsabilidades
    Isolar designers e desenvolvedores?
    Facilita os testes
  • 8. Por que do MVVM?
    Fatores tecnologicos
    Databinds
    INotifyPropertyChanged
    IValueConverter
    Modelo de eventos utilizando ICommand
  • 9. MVVM
    Model
    View
    DataBinding
    Presentation Model
    (ViewModel)
  • 10. ModelMVVM
    Represents the data
    The entity
    Not required to know where it gets its data from
    From a WCF service. WCF RIA Services, etc
    May contain validation
  • 11. ViewMVVM
    The screen, the UI, the UserControl in Silverlight
    Handles UI look and feel
    Presentation of information
    Communicates with ViewModel through bindings
  • 12. ViewModelMVVM
    Conhecido por PresenterModel
    Main source of logic for the MVVM triad
    Connects the Model to the View
    Abstracts the View
    Public properties that are bound to a View
    INotifyPropertyChanged and INotifyCollectionChanged talk to the View through bindings
    Listens for changes from the View through bindings
    Invokes services to communicate outside the MVVM triad
  • 13. MVVM
    DEMO!!!!
    DEMO!!!
    DEMO!!
    DEMO!
  • 14. Referências
    John Papa - http://johnpapa.net/
    http://www.galasoft.ch/mvvm/getstarted/
    http://msdn.microsoft.com/en-us/magazine/dd419663.aspx
    http://virtualdreams.com.br