I have been searching around and found a few examples of using Context Actions however none of the ones I found interact with the underlying ViewCell's bound object. Basically, when I swipe (using iOS) and click Delete, I want to delete the object from the collection that is bound to this particular cell in the list.
I know it must be something obvious that I am just missing. it doesn't appear to be available in the sender (MenuItem)
` <ViewCell.ContextActions>
</ViewCell.ContextActions>
public void OnCall(object sender, EventArgs e)
{
var mi = ((MenuItem)sender);
DisplayAlert("Call Context Action", mi.CommandParameter + " Call context action", "OK");
}
`
Thanks in advance.
Carl