Presentation is loading. Please wait.

Presentation is loading. Please wait.

DEEP DIVE MVVM Laurent Bugnion Director, UX Integration IdentityMine

Similar presentations


Presentation on theme: "DEEP DIVE MVVM Laurent Bugnion Director, UX Integration IdentityMine"— Presentation transcript:

1 DEEP DIVE MVVM Laurent Bugnion Director, UX Integration IdentityMine http://blog.galasoft.ch

2 LAST YEAR WE…

3 Page : 1.Talked about the history of MVVM 2.Cleared some confusion 3.Refactored a non-MVVM application 4.Made it Blendable 5.Talked about additional components 6.Did a more complex demo 3© 2011 IdentityMine Inc. All Rights Reserved.

4 AND THEN CAME THE QUESTIONS…

5 Page : Q How do you avoid redundancy? How do you start animations? How do you show dialogs? How do you do navigation? How do you handle multiple VMs? How do you test your VMs? 5© 2011 IdentityMine Inc. All Rights Reserved.

6 Page: © 2010 IdentityMine Inc. All Rights Reserved.6

7 Page: © 2010 IdentityMine Inc. All Rights Reserved.7

8 DEMO Connecting to JSON

9 Page : VIEWMODEL  VIEW © 2010 IdentityMine Inc. All Rights Reserved.9 ViewModel View Complicates the testing, hard coupling Hard to design and tweak MessageBox Animations Navigation

10 Page : VIEWMODEL  VIEW © 2011 IdentityMine Inc. All Rights Reserved.10 Behaviour Binding Loose coupling, more flexibility Behavior is highly Blendable ViewModel View

11 Page : INJECTING VIEW SERVICES © 2011 IdentityMine Inc. All Rights Reserved.11 ViewModel IDialogService DialogService View injection INavigationService injection action NavigationService

12 DEMO Behaviours Injecting View Services Navigation

13 Page : INJECTING VIEW SERVICES © 2011 IdentityMine Inc. All Rights Reserved.13 ViewModel IDialogService DialogService View injection INavigationService injection action NavigationService

14 Page : TESTING THE VIEWMODEL © 2011 IdentityMine Inc. All Rights Reserved.14 ViewModel IDialogService DialogService View MockDialogService Unit Test

15 Page : TESTING THE VIEWMODEL © 2011 IdentityMine Inc. All Rights Reserved.15 Unit test on WP7 cheat sheet: http://www.smartypantscoding.com/a-cheat- sheet-for-unit-testing-silverlight-apps-on- windows-phone-7 http://www.smartypantscoding.com/a-cheat- sheet-for-unit-testing-silverlight-apps-on- windows-phone-7

16 DEMO Unit Testing ViewModels Mocking Services

17 FURTHER INFORMATION http://blog.galasoft.ch http://www.galasoft.ch/mvvm/ http://mvvmlight.codeplex.com Twitter: @LBugnion #deepdivemvvm

18 Please fill out your evaluation forms…

19 THANKS!


Download ppt "DEEP DIVE MVVM Laurent Bugnion Director, UX Integration IdentityMine"

Similar presentations


Ads by Google