Hi,
I am using RadListBox with ContextMenu for an item,
on every right click (only on an item) i need
1. that the menu will be open only on the item (when i am clicking on free space on the list area, i don't want that the menu will open)
2. get the selected item to my viewModel
this is my code:
<telerik:RadListBox
ItemSource ="{Binding collection}" , SelectedItem="{Binding Selected2, mode =TwoWay}">
<teletik:RadContextMenu.ContextMenu>
<teletik:RadContextMenu>
<telerik:RadMenuItem Header="This menu is only for item" command="{Binding c}" CommandParamter="{Binding=selectedItem}"/>
</teletik:RadContextMenu.ContextMenu>
</teletik:RadContextMenu>