title: Creating menuitems from list with bindings results in blank items
body: <p>I have a Menuitem which is supposed to show a list of quantities as children which show a list of the units defined for this quantity as children. The list of quantities is set in code-behind to the ItemsSource of the MenuItem.</p>
  
  <pre><code>&lt;MenuItem Header="common.unitsystem" Name="mnuItemUnits"&gt;
      &lt;MenuItem.Resources&gt;
          &lt;DataTemplate DataType="{x:Type guidev:Measurement}"&gt;
              &lt;StackPanel&gt;
                  &lt;TextBlock Text="Measurement"/&gt;
                  &lt;TextBlock Text="{Binding Name}"/&gt;
              &lt;/StackPanel&gt;
          &lt;/DataTemplate&gt;
          &lt;HierarchicalDataTemplate DataType="{x:Type guidev:Quantity}" ItemsSource="{Binding Measurements}"&gt;
              &lt;StackPanel&gt;
                  &lt;TextBlock Text="Quantity "/&gt;
                  &lt;TextBlock Text="{Binding Name}"/&gt;
              &lt;/StackPanel&gt;
          &lt;/HierarchicalDataTemplate&gt;
      &lt;/MenuItem.Resources&gt;
  &lt;/MenuItem&gt;
  </code></pre>
  
  <p>The result is my MenuItem with a popup, but the subitems (quantities) don't have any bound text on them. The number of subitems is correct, but they have no children themselves. So i suppose there is a problem with the bindings, as the fixed Text i added to check if the DataTemplates actually work is showing ("Quantity").</p>
  
  <p>I think i can't use ItemTemplate for the MenuItem as this is hierarchical with 2 different types...</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>My datamodel looks like this:</p>
  
  <pre><code>public class Quantity
  {
      [XmlAttribute]
      public string Name;
  
      [XmlElement]
      public List&lt;Measurement&gt; Measurement;
  }
  
  
  public class Measurement
  {
      [XmlAttribute]
      public string Name;
  
      [XmlAttribute]
      public string Symbol;
  
      [XmlAttribute]
      public string System;
  
      public string ToBaseFormula;
  
      public string FromBaseFormula;
  }
  </code></pre>