Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Listview #3

Open
satputerohan opened this issue Jan 17, 2018 · 1 comment
Open

Issue with Listview #3

satputerohan opened this issue Jan 17, 2018 · 1 comment

Comments

@satputerohan
Copy link

satputerohan commented Jan 17, 2018

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.

@satputerohan satputerohan changed the title Issue with Listview button Issue with Listview Jan 17, 2018
@fiftysixkbit
Copy link

fiftysixkbit commented Sep 18, 2019

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);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants