Hello! Silverlitght windows phone toolkit has a context menu control. So, the toolkit itself gives an example of using the menu in single objects, I use the menu in the list and, therefore, I cannot figure out how after clicking on one of the context menu items to determine for which element of the list this menu is called. The whole thing is complicated by the fact that in the example of the toolkit there is no example of creating a menu in the code, only in the xaml markup. Help experienced, please! Here is a piece of context menu code in xaml:
<toolkit:ContextMenuService.ContextMenu> <toolkit:ContextMenu> <toolkit:MenuItem Header="добавить в..." Click="MenuItem_Click"/> <toolkit:MenuItem Header="переименовать"/> <toolkit:MenuItem Header="удалить"/> <toolkit:MenuItem Header="доп. информация" Click="ShowFileInfo"/> </toolkit:ContextMenu> </toolkit:ContextMenuService.ContextMenu>