Hello!
First take a look at my code:
<ListBox ItemsSource="{Binding}" SelectionMode="Multiple"
ItemTemplate="{StaticResource ContactTemplate}">
<ListBox.ContextMenu>
<ContextMenu>
<MenuItem Name="mnuEdit" Header="_Edit" Click="MenuItem_Click" />
</ContextMenu>
</ListBox.ContextMenu>
</ListBox>
I want, the when the user right-clicks an individual ListBoxItem in the ListBox, it should be passed (or the index of it or whatever a way to find the item that the ContextMenu popped-out on.