title: WPF C#: MenuItem click event won't fire in ListView ItemContainerStyle
body: <p>I have the following XAML code in a ListView:</p>
  
  <pre><code>            &lt;ListView.ItemContainerStyle&gt;
              &lt;Style TargetType="{x:Type ListViewItem}"&gt;
                  &lt;Setter Property="ContextMenu"&gt;
                      &lt;Setter.Value&gt;
                          &lt;ContextMenu&gt;
                              &lt;MenuItem Header="Change" Click="ChangeStatus_Click"/&gt;
                              &lt;MenuItem Click="MenuItem_OnClick"&gt;
                                  &lt;MenuItem.Style&gt;
                                      &lt;Style TargetType="{x:Type MenuItem}"&gt;
                                          &lt;Style.Triggers&gt;
                                              &lt;DataTrigger Binding="{Binding Path=IsActive}" Value="True"&gt;
                                                  &lt;Setter Property="Header" Value="off"/&gt;                                                   
                                              &lt;/DataTrigger&gt;
                                              &lt;DataTrigger Binding="{Binding Path=IsActive}" Value="False"&gt;
                                                  &lt;Setter Property="Header" Value="on"/&gt;
                                              &lt;/DataTrigger&gt;
                                          &lt;/Style.Triggers&gt;
                                      &lt;/Style&gt;
                                  &lt;/MenuItem.Style&gt;
                              &lt;/MenuItem&gt;
                          &lt;/ContextMenu&gt;
                      &lt;/Setter.Value&gt;
                  &lt;/Setter&gt;
              &lt;/Style&gt;
          &lt;/ListView.ItemContainerStyle&gt;
  </code></pre>
  
  <p>Why doesn't work the click event on MenuItem? Any Idea?</p>