I have a list view control which I'm using to display a list of items. I have a label in each row for "more options" (3 vertical dots) that when tapped, I want to display a popup to the bottom right of the label.
This works for the first item in the listview, but if I click the label in the second row, third row, etc--I can only get the coordinates of the first row's label
private async void TapGestureRecognizer_Tapped(object sender, EventArgs e)
double y = ((Label)sender).Y;
double x = ((Label)sender).X;
ViewModel.ResultViewQuestionnaireVersion = (int)((TappedEventArgs)e).Parameter;
ResultsOptionsPoup.ShowRelativeToView(ResultsViewContent, RelativePosition.AlignBottomLeft, x + 20, y + 20);
In the above code, y and x are always the position of the first row's label. Any ideas?