I have a problem, I need to get the selected Item from a ContextMenu in a LongListSelector.
Before I was using a normal ListBox and I did it with:
var selectedItem = myList.ItemContainerGenerator.ContainerFromItem(menuItem.DataContext) as ListBoxItem;
But now I'm using the LongListSelector and this method doesn't work.
Who can I do it?
Comments: ** Comment from web user: halocameo **
Before I was using a normal ListBox and I did it with:
var selectedItem = myList.ItemContainerGenerator.ContainerFromItem(menuItem.DataContext) as ListBoxItem;
But now I'm using the LongListSelector and this method doesn't work.
Who can I do it?
Comments: ** Comment from web user: halocameo **
Any update on this? I am facing the same issue!