An Extensible WPF client layout with RibbonTab submenus using MEF
I was just experimenting with extensibility using MEF ( MEF is a .NET resident for .NET4 and SL4 ), when I created a small proof of this functionality that I could share via my blog. It is a semi-patterned (only for the main shell, my shell, not a PRISM one with viewregions and stuff, just an MVVM main area implemented with MVVMLight ), but it does what it is supposed to do. So what is is supposed to do? It is an application, which can be extended by simply, drag and dropping, dlls in the Plugins directory. Every plugin, contains a certain amount, of RibbonTabs and each one, can provide applications, via RibbonTabItems ( utilized the Microsoft Ribbon for WPF October 2010 ). By clicking each one of these items, one can open the corresponding application in the closable TabControl next to the plugin option menu. This menu, by the way is a WPF Outlook bar reused by this codeproject . The Favorites menu is a subset of the Applications option. The plugin system is based on MEF, demonstrating a simple plugin system.
Διαβάστε περισσότερα »