Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Extensibility with sl4 and mef (en)

1,668 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Extensibility with sl4 and mef (en)

  1. 1.
  2. 2. Construção de Soluções Extensíveis com Silverlight 4.0 e MEF<br />Nuno Godinho – Independent Consultant<br />
  3. 3. Construção de Soluções Extensíveis com Silverlight 4.0 e MEF<br />Nuno Godinho – Independent Consultant<br />
  4. 4.
  5. 5. Nuno Filipe Godinho<br />Independent Consultant<br />Mail: Nuno.Godinho@itech4all.com<br />Nuno.Godinho@sapo.pt<br />MSN: Nuno_God@hotmail.com<br />Blogs: http://pontonetpt.com/blogs/nunogodinho<br />http://xamlpt.com/blogs/nunogodinho<br />http://weblogs.asp.net/nunogodinho<br />http://msmvps.org/blogs/nunogodinho<br />Twitter: NunoGodinho<br />About Me<br />
  6. 6. Agenda<br />
  7. 7. Introduction to MEF<br />MEF and MVVM<br />Solution Modularity<br />Event Aggregation<br />Summary<br />Agenda<br />
  8. 8. Introduction to MEF<br />
  9. 9. What is MEF - Managed Extensibility Framework?<br />“MEF makes building extensible apps, libraries and frameworks easy” – Glenn Block<br />http://blogs.msdn.com/b/gblock/archive/2008/09/26/what-is-the-managed-extensibility-framework.aspx<br />“New library in .NET Framework 4 and Silverlight 4 that addresses the extensibility problem by simplifying the design of extensible applications and components”<br />http://mef.codeplex.com/<br />Introduction to MEF<br />
  10. 10. Basic Concepts<br />An Application is built using parts<br />Introduction to MEF<br />
  11. 11. Basic Concepts<br />Introduction to MEF<br />3. Compose<br />Shell Application<br />View Models<br />Modules<br />Application Parts<br />1. Import<br />Pages<br />Actions<br />Functionalities<br />2. Export<br />
  12. 12. MEF and MVVM<br />
  13. 13. DEMO:<br />ViewModel Injection<br />
  14. 14. DEMO:<br />ViewModel Extensibility<br />
  15. 15. Solution Modularity<br />
  16. 16. DEMO:<br />Dynamic XAP Loading<br />
  17. 17. DEMO:<br />Dynamic XAP Discovery<br />
  18. 18. DEMO:<br />Dynamic XAP Navigation<br />
  19. 19. Event Aggregation<br />
  20. 20. DEMO:<br />Event Aggregation<br />
  21. 21. Summary<br />
  22. 22. We can achieve a very high degree of Extensibility in our Applications by using MEF<br />MEF with MVVM is possible and can give us:<br />ViewModel Injection<br />ViewModel Extensibility<br />...<br />Summary<br />
  23. 23. Our Solutions sparsed into several XAP’s to gain Performance<br />Solutions can be much more easily integrated maintaining the loose coupling, using Event Aggregation<br />Summary<br />
  24. 24. Summary<br />MEF<br />Extend their limits<br />Tightly Coupled<br />Break the Coupling …<br />
  25. 25. Nuno Godinho <br />Partner @ ITech4all<br />Nuno.Godinho@sapo.pt<br />NunoGodinho<br />

×