Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MVVM conundrum
Message
De
07/07/2011 11:44:17
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Titre:
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01517403
Message ID:
01517598
Vues:
38
>>I see you've decided to go ahead with Prism.
>>
>>Hopefully your having fun with it. <g>
>>
>>I hooked Prism up to AvalonDock last weekend and created a basic framework/interface for my modules. MEF auto discovers the modules and they incorporate themselves into the menus and toolbars of the framework. So far it's been surprisingly easy to code and I like what I'm getting out of it.
>
>MEF seems very cool. I saw a session on it at a user group meeting about a year ago. Not only does it auto discover, it does so dynamically at run time. The presenter threw together a demo of pictures of animals, looking in a certain folder for images. While the app was running he copied a picture of an elephant into the folder and viola, it showed up in the app.

Ya it works nicely. My modules are not linked to my application, I just copy them into an add on folder and MEF handles the discovery. Each module has a lightweight class in it that handles integrating it into the UI.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform