title: Customize the menu depending on situation in WPF
body: <p>How can I customize the menu to the situation in WPF?
  I have a main window with a basic menu. In this window, I can load different UserControls and then I want the menu to be expanded with different menu options depending on which User Control is used. </p>
  
  <p>Example:</p>
  
  <pre><code>Main menu:
  File
     Open
     -
     MRU
     -
     Exit
  
  
  For viewing of UserControl 1:
  File
     Open
     Edit
     -
     MRU
     -
     Exit
  
  For viewing of UserControl 2:
  File
     Open
     Edit
     -
     MRU
     -
     Exit
  View
     Show codes
     Show capital letters
  
  In Editing
  File
     Open
     Save
     Save as...
     -
     MRU
     -
     Exit
  Edit
     Add
     Remove
     Move
     -
     Cancle Edit
  </code></pre>