title: Same menubar or toolbar for all windows in a WPF application
body: <p>I want to create a wpf application with a menubar. The Menubar has some clickable elements, which opens a new window. Because the menubar is the same on every window, I want to create the menubarcode just once.</p>
  
  <p>I read here how to create a menubar (<a href="https://stackoverflow.com/questions/4429021/what-is-the-accepted-way-to-get-a-main-window-with-menubar-and-toolbar-in-wpf">What is the accepted way to get a main window with menubar and toolbar in WPF?</a>):</p>
  
  <pre><code>&lt;Window x:Class="WpfApplication1.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          x:Name="self"
          Title="MainWindow" Height="350" Width="525"&gt;
      &lt;Grid&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="Auto" /&gt;
              &lt;RowDefinition Height="Auto" /&gt;
              &lt;RowDefinition Height="*" /&gt;
          &lt;/Grid.RowDefinitions&gt;
          &lt;Menu Grid.Row="0"&gt;
              &lt;MenuItem Header="File"&gt;
                  &lt;MenuItem Header="Open" /&gt;
                  &lt;MenuItem Header="Close" /&gt;
              &lt;/MenuItem&gt;
          &lt;/Menu&gt;
          &lt;ToolBar Grid.Row="1"&gt;
              &lt;Button Content="Foo" /&gt;
              &lt;Button Content="Bar" /&gt;
          &lt;/ToolBar&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>I read also the question for the same header an footer for alle wpf windows:
  <a href="https://stackoverflow.com/questions/20113405/same-header-footer-in-all-wpf-windows">Same header &amp; footer in all WPF windows</a>. There they suggest a usercontrol.</p>
  
  <p>The Question <a href="https://stackoverflow.com/questions/420538/how-to-make-a-template-window-in-wpf">How to make a Template Window in WPF?</a> doesn't solve my issue. Is it possible to add clicklistener to the template? I do not want to implement all clicklistener on every window. My menubar/toolbar only opens some other windows. Only for diplaying static content the solution would work.</p>
  
  <p>What is the best practice for this kind of problem? </p>