1 / 16

wp7 mvvm frameworks

wp7 mvvm frameworks. max paulousky. www.maxpaulousky.com. twitter: @paulousky. This work is licensed under a Creative Commons Attribution By license. agenda. Phone7 (Prism fork) Prism MVVM light Caliburn Micro My own experience. phone7.

denzel
Download Presentation

wp7 mvvm frameworks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. wp7 mvvm frameworks max paulousky www.maxpaulousky.com twitter: @paulousky This work is licensed under a Creative Commons Attribution By license.

  2. agenda Phone7 (Prism fork) Prism MVVM light Caliburn Micro My own experience

  3. phone7 • Outdated fork of the Prism for Silverlight library (Jul 2010) • Has built-in IOC Container • Supports • Regions, Event Aggregator, Commands • Transitions, Back button, Modularity

  4. phone7 risks Outdated, development is stopped Has bugs (commanding) Back button and regions do not work well together Need some workarounds to start displaying AppBar EventAggregator works slow for navigation

  5. prism • No changes since Nov 2010 (waiting for ideas) • No built-in IOC Container • Rich set of samples and documentation • Supports • Event Aggregator, Commands • Interaction requests from VM

  6. prism risks The framework has few features implemented No built-in IOC Container (Unity?) No modularity support No bootstrapping model No WP7 samples Let me know if you have ideas for implementation in Prism for WP7

  7. mvvm light • ViewModelLocator pattern instead of IoC • Rich set of samples and documentation • Lots of code templates and snippits • Supports • Event Aggregator (Messenger) • Interaction requests via Messenger • Event To Command extension

  8. mvvmlight risks According to mvvmlight’s author it’s not a framework but set of helpers Real development requires using IoC Real development requires using MVVM features from 3rd party libs/framework Often requires writing code in xaml.cs files

  9. caliburn micro • Locator pattern + simple IoC • Lots of code templates • Supports • Event Aggregator, Screen framework • Tombstoning support, bootstrappermodel • Quite difficult to start developing

  10. caliburn micro risks Need to have very high level to start developing Less popular then other frameworks

  11. own experience Started from Phone7 + ScreenFramework from John Papa Removed regions Added NavigationService Added BindableAppBar Added Tombstoning support

  12. own experience 2 Plan to give up phone7 lib in favor of Prism Plan to replaced current IoC with Ninject Plan to add EventToCommandextension from MVVMLight Thinking on migration to ViewModelLocator Thinking on adding support of interaction requests from Prism

  13. summary There are a lot of MVVM frameworks for WP7 development Mostly, IoC is not a part of frameworks In most cases, you build your application based on best practices from popular MVVM frameworks

  14. links http://caliburnmicro.codeplex.com http://prism.codeplex.com http://wp7guide.codeplex.com http://mvvmlight.codeplex.com http://ninject.org/ http://johnpapa.net/silverlight/mvvm-and-prism-demo-for-pdc09-silverlight-session/ http://www.maxpaulousky.com/blog/archive/2011/01/10/bindable-application-bar-extensions-for-windows-phone-7.aspx

  15. thanks max paulousky www.maxpaulousky.com twitter: @paulousky This work is licensed under a Creative Commons Attribution By license.

  16. questions

More Related