This project has moved and is read-only. For the latest updates, please go here.

MEF for Menu Item Plugins

Jul 19, 2010 at 1:48 AM


I am wanting to create a plugins section to my WPF Application so others can develop plugins that will be able to do what every they would like. I'm still fairly new to MEF and i'm wondering what the best way to do this is. 

Should i get the Plugins to construct a WPF menu item so i can import and use it directly or should i provide an interface that they must implement and then construct the menu items myself? Either way i'm not entirely sure how the click events will execute their custom code. 


Can someone give me some tips/code samples if possible.