• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Infragistics: Getting Started with MVVM in WPF & Silverlight

Infragistics: Getting Started with MVVM in WPF & Silverlight



OCT 31 Webinar Slides

OCT 31 Webinar Slides



Total Views
Views on SlideShare
Embed Views



1 Embed 3

http://www.docshut.com 3



Upload Details

Uploaded via as Adobe PDF

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.

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

    Infragistics: Getting Started with MVVM in WPF & Silverlight Infragistics: Getting Started with MVVM in WPF & Silverlight Presentation Transcript

    • Getting Startedwith MVVM in(WPF / Silverlight)NISHANTH ANILTECHNICAL EVANGELIST @nishanil | nanil@infragistics.com | nnish.comfacebook.com/InfragisticsIndia
    • Agenda– Patterns– What’s MVVM?– Foundation (WPF concepts)– Available Frameworks– Your First ViewModel (demo)– Simple Dashboard (demo) @nishanil
    • Patterns – are guidelines not rules!• UI patterns – Model – View – Controller – Model – View – Presenter – Presentation Model – Model – View – ViewModel• Why do they exist? – Separation of concerns – Testability – Maintainability @nishanil
    • MVVM @nishanil
    • Foundation – WPF Concepts• INotifyPropertyChanged/INotifyCollectionChanged• DataContext• DataBinding• Commanding @nishanil
    • Foundation – WPF Concepts• INotifyPropertyChanged – Not a WPF only concept (part of an implementation of GOF Observer pattern) • Observer Pattern in brief: When one object changes state, all its dependents are notified and updated automatically. – Implement INotifyPropertyChanged in your ViewModels – And Notify when property changes• INotifyCollectionChanged – Similar to INotifyProperyChanged, but it applies to collections of objects – Use ObservableCollection<T> instead of manually implementing @nishanil
    • Foundation – WPF Concepts• DataBinding – A View binds to properties on a ViewModel• DataContext – Set ViewModel to the DataContext of the View – This property is meant to be set to the data object it visualizes. @nishanil
    • Foundation – WPF Concepts• Commanding – Is an input mechanism – Without command MVVM will be less powerful – Commands in WPF are implemented using ICommand interfaceICommand Implementation ViewModel Binding the command in the View @nishanil
    • Available FrameworksSource: Wikipedia, As on 31st OCT 2012 @nishanil
    • Some helper files• MVVM Foundation – http://mvvmfoundation.codeplex.com/ – ObservableObject Class – RelayCommand @nishanil
    • Demo• Writing your first ViewModel• A simple Sales dashboard @nishanil
    • Silverlight: MVVM + RIA @nishanil
    • Resources• Introduction to Model/View/ViewModel pattern for building WPF apps (John Gossman) – http://blogs.msdn.com/b/johngossman/archive/2005/10/08/478683.a spx• WPF Apps With The Model-View-ViewModel Design Pattern (Josh Smith) – http://msdn.microsoft.com/en-us/magazine/dd419663.aspx• Infragistics Community – http://www.infragistics.com/community/blogs/• Infragistics WPF Products - http://www.infragistics.com/products/wpf/• Infragistics Silverlight Products - http://www.infragistics.com/products/silverlight/ @nishanil
    • Q&ANISHANTH ANILTECHNICAL EVANGELIST @nishanil | nanil@infragistics.com | nnish.comfacebook.com/InfragisticsIndia