title: How do I share a menu definition between a context menu and a regular menu in WPF
body: <p>I have a defined MenuItem that I would like to share between two different menus on one page. The menu contains functionallity that is the same between both menus and I do not want two copies of it. Is there anyway to define a MenuItem in the Page.Resources and reference it in the ContextMenu XAML below?</p>
  
  <pre><code>&lt;Page.Resources&gt;
      &lt;MenuItem x:Key="123"/&gt;
  &lt;/Page.Resources&gt;
  
  &lt;ContextMenu&gt;
      &lt;MenuItem&gt;Something hardcoded&lt;/MenuItem&gt;
  
      &lt;!-- include shared menu here --&gt;
  
  &lt;/ContextMenu&gt;
  </code></pre>