title: How to add a click handler to MenuItems created by a data binding?
body: <p>and now the details...</p>
  
  <p>First if all this is my first encounter with WPF so please forgive I am missing something obvious etc. </p>
  
  <p>What I have is a Menu with Menu Items bound to a DataView each menu item is a Row in DataView MenuItem Text is set to a Field in Row... menu is populated well and I can see all rows listed there! but when clicked nothing happens.</p>
  
  <p>My Problem is how I can assign a click event to Menu Item, below is the XAML of ItemPresenter of parent menuitem</p>
  
  <pre><code>&lt;MenuItem Name="mnuRowsDropDown" Header="All Rows ▼" 
                            Height="23" 
                            Loaded="mnuNotesDropDown_Loaded" ItemsSource="{Binding Path=Title, Mode=OneWay}" &gt;
          &lt;MenuItem.ItemContainerStyle&gt;
              &lt;Style&gt;
                  &lt;Setter Property="MenuItem.Header" Value="{Binding Title}"/&gt;
                  &lt;!--&lt;Setter Property="MenuItem.Click" Value="" /&gt;--&gt;
              &lt;/Style&gt;
          &lt;/MenuItem.ItemContainerStyle&gt;
      &lt;/MenuItem&gt;
  &lt;/MenuItem&gt;
  </code></pre>
  
  <p>As you can see here I commented the Click Code because designed said it is an error</p>