I have a listview with contextMenu on each ListViewItem that has Click event, how can I detect in the event handler witch Item was click in his contextMenu ? I need the item ID.
<Style TargetType="{x:Type ListViewItem}">
. . .
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate TargetType="tv:TreeListViewItem">
<Grid>
<Grid.ContextMenu>
<ContextMenu>
<MenuItem Header="Open in current tab" Click="MenuItemCurrentTab_Click"/>
<MenuItem Header="Open in new tab" Click="MenuItemNewTab_Click"/>
</ContextMenu>
</Grid.ContextMenu>