title: ItemContainerStyle evaluation
body: <p>I have a Menu which has an ItemContainerStyle</p>
  
  <pre><code>&lt;Menu DockPanel.Dock="Top" ItemContainerStyle="{StaticResource MenuItemStyle}" ItemsSource="{Binding MenuItems}"&gt;
  </code></pre>
  
  <p>This particoular ItemContainerStyle has a trigger defined like in <a href="https://stackoverflow.com/questions/4181310/how-can-i-bind-key-gestures-in-caliburn-micro">How can I bind key gestures in Caliburn.Micro?</a></p>
  
  <pre><code>&lt;Style TargetType="{x:Type MenuItem}"  x:Key="MenuItemStyle" BasedOn="{StaticResource {x:Type MenuItem}}"&gt;
  [...]
  &lt;Setter Property="int:InteractivityItems.Template"&gt;
      &lt;Setter.Value&gt;
          &lt;int:InteractivityTemplate&gt;
              &lt;int:InteractivityItems&gt;
                  &lt;int:InteractivityItems.Triggers&gt;
                      &lt;triggers:InputBindingTrigger InputBinding="{Binding Shortcut, Converter={StaticResource StringToKeyBinding}}"&gt;
                          &lt;cal:ActionMessage MethodName="Execute"/&gt;
                      &lt;/triggers:InputBindingTrigger&gt;
                  &lt;/int:InteractivityItems.Triggers&gt;
              &lt;/int:InteractivityItems&gt;
          &lt;/int:InteractivityTemplate&gt;
      &lt;/Setter.Value&gt;
  &lt;/Setter&gt;
  [...]
  </code></pre>
  
  <p>The problem I am  facing is that this trigger is attached to menu item children only when, for example, I open the menu instead of its creation and therefore thr InputBindingTrigger does not work except  when opening and then closing the menu.</p>
  
  <p>Is there any way to force the application of ItemContainerStyle when the menu is created instead of openened?</p>