xaml deep dive for windows & windows phone apps jump start

13
Jaime Rodriguez | Microsoft Principal Technical Evangelist Laurent Bugnion | IdentityMine Senior Director XAML Deep Dive for Windows & Windows Phone Apps Jump Start

Upload: ginny

Post on 05-Feb-2016

61 views

Category:

Documents


0 download

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 Presentation

TRANSCRIPT

Page 1: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

Jaime Rodriguez | Microsoft Principal Technical EvangelistLaurent Bugnion | IdentityMine Senior Director

XAML Deep Dive for Windows & Windows Phone Apps Jump Start

Page 2: 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

Page 3: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

Module 6 | MVVM

Page 4: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

the mvvm pattern

Page 5: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

From MVC

Model View

Controller

Page 6: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

Presentation Model(ViewModel)

To MVVM

Model View

Databinding

Databinding

Page 7: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

The relationships

View

ViewModel

DataBinding Commands ServicesMessages

Model

Page 8: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

Commands

“Point of entry” for a methodCan be data boundICommand interface

Execute methodCanExecute methodCanExecuteChanged event

Page 9: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

Implementing commands

It’s quite a lot of workMost toolkits and frameworks have a “relay” implementation

RelayCommand (MVVM Light)DelegateCommand (PRISM)…

Page 10: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

MVVM DEMO

Page 11: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

MVVM Light Toolkit

“Breaking the monotony”http://www.galasoft.ch/mvvm/http://mvvmlight.codeplex.comKeep it smallKeep it simple

Page 12: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

MVVM Light Toolkit

RelayCommandMessengerViewModelBaseDispatcherHelperSimpleIocEventToCommand

Project templatesItem templatesCode snippets

Page 13: XAML Deep Dive for Windows & Windows Phone Apps Jump Start

©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.