xaml deep dive for windows & windows phone apps jump start
DESCRIPTION
Jaime Rodriguez | Microsoft Principal Technical Evangelist Laurent Bugnion | IdentityMine Senior Director. XAML Deep Dive for Windows & Windows Phone Apps Jump Start. Course Topics. Module 6 | MVVM. the mvvm pattern. From MVC. Model. View. Controller. To MVVM. Databinding. Model. - PowerPoint PPT PresentationTRANSCRIPT
Jaime Rodriguez | Microsoft Principal Technical EvangelistLaurent Bugnion | IdentityMine Senior Director
XAML Deep Dive for Windows & Windows Phone Apps Jump Start
Course TopicsXAML Deep Dive for Windows & Windows Phone Apps Jump Start
01 | Intro to XAML
02 | XAML UI Elements03 | Controls04 | Panels & Layout05 | Data Binding06 | MVVM07 | Windows Personality Controls
Module 6 | MVVM
the mvvm pattern
From MVC
Model View
Controller
Presentation Model(ViewModel)
To MVVM
Model View
Databinding
Databinding
The relationships
View
ViewModel
DataBinding Commands ServicesMessages
Model
Commands
“Point of entry” for a methodCan be data boundICommand interface
Execute methodCanExecute methodCanExecuteChanged event
Implementing commands
It’s quite a lot of workMost toolkits and frameworks have a “relay” implementation
RelayCommand (MVVM Light)DelegateCommand (PRISM)…
MVVM DEMO
MVVM Light Toolkit
“Breaking the monotony”http://www.galasoft.ch/mvvm/http://mvvmlight.codeplex.comKeep it smallKeep it simple
MVVM Light Toolkit
RelayCommandMessengerViewModelBaseDispatcherHelperSimpleIocEventToCommand
Project templatesItem templatesCode snippets
©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.