title: Add scrollability to MenuItem in a Style
body: <p>I'd like to create a style for my menus. In case if there are more that X elements there should appear a scrollbar in a menu (to scroll all menu items).
  At the moment my style is:</p>
  
  <pre><code>&lt;MenuItem.Resources&gt;
      &lt;!--From BFR, need to retrieve from SDK--&gt;
      &lt;Style x:Key="HierarchyDynamicMenuStyle" TargetType="{x:Type MenuItem}" BasedOn="{StaticResource {x:Type MenuItem}}"&gt;
          &lt;Setter Property="ItemContainerStyle"&gt;
              &lt;Setter.Value&gt;
                  &lt;Style TargetType="{x:Type MenuItem}" BasedOn="{StaticResource {x:Type MenuItem}}"&gt;
                      &lt;Setter Property="Header" Value="{Binding Path=Header}" /&gt;
                      &lt;Setter Property="Command" Value="{Binding Command}"/&gt;
                      &lt;Setter Property="CommandParameter" Value="{Binding Path=CommandParameter}"/&gt;
                      &lt;Setter Property="ItemsSource" Value="{Binding Children}"/&gt;
                  &lt;/Style&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
          &lt;Setter Property="Template" &gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate&gt;
                      &lt;ScrollViewer&gt;
                        &lt;ContentPresenter/&gt;
                      &lt;/ScrollViewer&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  &lt;/MenuItem.Resources&gt;
  </code></pre>
  
  <p>And now i'm adding a new menu:</p>
  
  <pre><code>&lt;MenuItem Header="My menu with scrollbar" Style="{StaticResource HierarchyDynamicMenuStyle}" ItemsSource="{Binding MyItems}"&gt;&lt;/MenuItem&gt;
  </code></pre>
  
  <p>Could you please help me with a template? There can be some height constraint for scrollbar, or items count, etc.</p>