Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MVVM conundrum
Message
From
07/07/2011 11:44:17
 
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Title:
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01517403
Message ID:
01517598
Views:
37
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform