Xam.Plugin.PopupMenu
Xam.Plugin.PopupMenu copied to clipboard
Issue with Listview
Hi,
I am trying to use this control with a listview item with a tapgesturerecognizer. Everything works great except it takes the same listview item (the first clicked) to set the popup regardless of the item (in listview) selected.
So whichever item in the list view I select, the popup comes under the first clicked listview item.
Please let me know how I can resolve this.
Thanks.
I know this is super late but maybe it'll help someone else using this plugin in the future. I got it to work with a listview item by re-instantiating the popup object.
private void Button_Clicked(object sender, EventArgs e)
{
popup = new PopupMenu()
{
BindingContext = OrderDetailContext.Instance
};
popup.SetBinding(PopupMenu.ItemsSourceProperty, "ListItems");
popup?.ShowPopup(sender as View);
}