extensibility with sl4 and mef (en)

Post on 06-May-2015

1.221 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Construção de Soluções Extensíveis com Silverlight 4.0 e MEF

Nuno Godinho – Independent Consultant

Nuno Filipe GodinhoIndependent Consultant

Mail: Nuno.Godinho@itech4all.comNuno.Godinho@sapo.pt

MSN: Nuno_God@hotmail.com

Blogs: http://pontonetpt.com/blogs/nunogodinhohttp://xamlpt.com/blogs/nunogodinhohttp://weblogs.asp.net/nunogodinhohttp://msmvps.org/blogs/nunogodinho

Twitter: NunoGodinho

About Me

Agenda

• Introduction to MEF• MEF and MVVM• Solution Modularity• Event Aggregation• Summary

Agenda

Introduction to MEF

• What is MEF - Managed Extensibility Framework?“MEF makes building extensible apps, libraries and frameworks easy” – Glenn Blockhttp://blogs.msdn.com/b/gblock/archive/2008/09/26/what-is-the-managed-extensibility-framework.aspx “New library in .NET Framework 4 and Silverlight 4 that addresses the extensibility problem by simplifying the design of extensible applications and components” http://mef.codeplex.com/

Introduction to MEF

• Basic ConceptsAn Application is built using parts

Introduction to MEF

• Basic Concepts

Introduction to MEF

1. Import

2. Export

3. Compose

Modules

Functionalities

View ModelsApplication Parts

PagesActions

Shell Application

MEF and MVVM

DEMO:ViewModel Injection

DEMO:ViewModel Extensibility

Solution Modularity

DEMO:Dynamic XAP Loading

DEMO:Dynamic XAP Navigation

Event Aggregation

DEMO:Event Aggregation

Summary

• We can achieve a very high degree of Extensibility in our Applications by using MEF

• MEF with MVVM is possible and can give us:– ViewModel Injection– ViewModel Extensibility– ...

Summary

• Our Solutions sparsed into several XAP’s to gain Performance

• Solutions can be much more easily integrated maintaining the loose coupling, using Event Aggregation

Summary

Break the Coupling …Extend their limitsTightly Coupled

Summary

MEF

Nuno Godinho Partner @ ITech4allNuno.Godinho@sapo.ptNunoGodinho

top related