title: Silverlight context menu: how to determine which menu was clicked?
body: <p>I have the following context menu:</p>
  
  <pre><code>                &lt;ListBox x:Name="sectionList" Margin="56,8,15,0" FontSize="64" SelectionChanged="SectionList_SelectionChanged"&gt;
                      &lt;ListBox.ItemTemplate&gt;
                          &lt;DataTemplate&gt;
                              &lt;StackPanel&gt;
                                  &lt;toolkit:ContextMenuService.ContextMenu&gt;
                                      &lt;toolkit:ContextMenu&gt;
                                          &lt;toolkit:MenuItem Header="Hide this section from this list" Click="ContextMenuItem_Click" /&gt;
                                      &lt;/toolkit:ContextMenu&gt;
                                  &lt;/toolkit:ContextMenuService.ContextMenu&gt;
                                  &lt;TextBlock Text="{Binding DisplayName}" /&gt;
                              &lt;/StackPanel&gt;
                          &lt;/DataTemplate&gt;
                      &lt;/ListBox.ItemTemplate&gt;
                  &lt;/ListBox&gt;
  </code></pre>
  
  <p>As you can see, each displayed item has its own context menu. Each context menu is hooked up to the same event handler:</p>
  
  <pre><code>    private void ContextMenuItem_Click(object sender, RoutedEventArgs e)
      {
  
      }
  </code></pre>
  
  <p>From this method, how can I tell which context menu was clicked? I want to know what the <code>DataContext</code> for the corresponding <code>DataTemplate</code> is.</p>