title: Command Binding in hierarchical datatemplate
body: <p>I have Menu in my app. I'm visualizing it using hierarchical data template:</p>
  
  <pre><code>    &lt;MenuItem Header="Main menu" ItemsSource="{Binding ApplicationMenu}" &gt;
          &lt;MenuItem.ItemTemplate&gt;                    
              &lt;HierarchicalDataTemplate DataType="{x:Type tm:RMenuItem}" 
                                        ItemsSource="{Binding Path=ChildrenItems}"&gt;                        
                  &lt;MenuItem Header="{Binding Name}" Command="{Binding RunOperationCommand}" /&gt;
              &lt;/HierarchicalDataTemplate&gt;
          &lt;/MenuItem.ItemTemplate&gt;
      &lt;/MenuItem&gt;
  </code></pre>
  
  <p>menu looks like as it should, but Command for each menu item is not fired! Even more - it is not bounded, which could be seen in debugger: get accessor of ICommand Property has been never executed.
  Why it happens so?</p>
  
  <p>Doing as usual works perfect:</p>
  
  <pre><code>&lt;Menu&gt;
      &lt;MenuItem Header="SomeHeader" Command="{Binding RunOperationCommand}"/&gt;
  &lt;Menu&gt;
  </code></pre>