Extensibility with sl4 and mef (en)

1,516 views
1,420 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,516
On SlideShare
0
From Embeds
0
Number of Embeds
27
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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 />

×