title: How do I dynamically bind and statically add MenuItems?
body: <p>I'm binding the ItemsSource of my MenuItem to an ObservableCollection in my ViewModel.  Here is my xaml:</p>
  
  <pre><code>&lt;MenuItem Header="_View"
            ItemsSource="{Binding Windows}"&gt;
    &lt;MenuItem.ItemContainerStyle&gt;
      &lt;Style&gt;
        &lt;Setter Property="MenuItem.Header"
                Value="{Binding Title}" /&gt;
      &lt;/Style&gt;
    &lt;/MenuItem.ItemContainerStyle&gt;
  &lt;/MenuItem&gt;
  </code></pre>
  
  <p>This part works great, but now I also want to add some static MenuItems to the same View MenuItem, separated with a separator.  Something like this, even though I know this won't work because I can't set the items twice.  </p>
  
  <pre><code>&lt;MenuItem Header="_View"
            ItemsSource="{Binding Windows}"&gt;
    &lt;MenuItem.ItemContainerStyle&gt;
      &lt;Style&gt;
        &lt;Setter Property="MenuItem.Header"
                Value="{Binding Title}" /&gt;
      &lt;/Style&gt;
    &lt;/MenuItem.ItemContainerStyle&gt;
    &lt;Separator /&gt;
    &lt;MenuItem Header="item 1" /&gt;
    &lt;MenuItem Header="item 2" /&gt;
  &lt;/MenuItem&gt;
  </code></pre>
  
  <p>For now I have created a work around by adding another level to the MenuItem like this:</p>
  
  <pre><code>&lt;MenuItem Header="_View"&gt;
    &lt;MenuItem Header="Windows"
              ItemsSource="{Binding Windows}"&gt;
      &lt;MenuItem.ItemContainerStyle&gt;
        &lt;Style&gt;
          &lt;Setter Property="MenuItem.Header"
                  Value="{Binding Title}" /&gt;
        &lt;/Style&gt;
      &lt;/MenuItem.ItemContainerStyle&gt;
    &lt;/MenuItem&gt;
    &lt;MenuItem Header="Load Layout" /&gt;
    &lt;MenuItem Header="Save Layout" /&gt;
  &lt;/MenuItem&gt;
  </code></pre>
  
  <p>This works fine, but I'd rather not have a sub menu if at all possible.  Oh, and I'd also prefer to do this in xaml instead of code behind.  Any ideas?</p>