title: How can I leverage MEF in my MVVM application?
body: <p>Can anybody give me a simple wpf application using mef and following mvvm pattern. I have looked a lot on the internet but i found very few examples and those example are very complex to understand. some examples are wpf, mef but dont follow mvvm pattern. </p>
  
  <p>here is what i am trying to do.</p>
  
  <p>There will a main wpf application. This will load all the modules (plugins) and show it to user. A module will contain 2 or 3 pages with next back buttons (used for navigation). Now when in main application i select a module, module opens or what you can say it replaces current window and on button navigation it changes views of the module.</p>
  
  <blockquote>
    <p>Main Window -> Module 1 -> Page 1</p>
  
  <pre><code>                       Page 2
  
                         Page 3
  
             Module 2 -&gt; Page 1
  
                         Page 2
  
                         Page 3
  </code></pre>
  </blockquote>
  
  <p>So it look clean now. Module 1 is a seperate project, module 2 is a seperate project. main window reads modules from dll and show them. clicking a module will go through its pages.</p>