Bug 20670 - ListView in Windows Phone does not fire ItemTapped event
Summary: ListView in Windows Phone does not fire ItemTapped event
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.3
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-06-18 01:20 UTC by Prashant Cholachagudda
Modified: 2015-05-20 12:21 UTC (History)
12 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:


Attachments
Simple WP8 Xamarin Forms with Grouped ListView in TabbedPage showing bug (5.84 MB, application/octet-stream)
2014-09-30 23:15 UTC, Lee McPherson
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Prashant Cholachagudda 2014-06-18 01:20:54 UTC
There seems to be a bug with ListView when it is used within a TabbedPage on Windows Phone.

When I tap the items in the list view on Windows Phone, the items in the first list group don't fire the ItemTapped event and the items in the second section fire ItemTapped but the Item returned in the ItemTappedEventArgs is the item at that index in the previous group. 

Tapping Babbage, for example, will display the alert "You Tapped Allen." However, if the group length is larger than the previous group, tapping items beyond the number of items in the previous group will return the correct item (e.g. Boole). 

I tested the same code on Android and the correct items are returned within all groups when the items are tapped. The LabelledSectionsList page also seems to work properly even on Windows Phone as long as it is not contained within a TabbedPage.

It sounds like duplicate of Bug #20249
Comment 1 Lee McPherson 2014-09-30 22:20:11 UTC
I can confirm this still exists in v1.2.2.  Going to file a separate bug report.
Comment 2 Jason Smith [MSFT] 2014-09-30 22:40:18 UTC
Can you please reconfirm on 1.2.3 there was some work in this area.
Comment 3 Lee McPherson 2014-09-30 23:15:46 UTC
Created attachment 8264 [details]
Simple WP8 Xamarin Forms with Grouped ListView in TabbedPage showing bug

Try to tap the first item.  It will not be selected (highlight).  The others can be selected, but often a neighboring item is selected in its place.

The selected item is databound to the TabbedPage's Title to show it's not just a UI glitch.
Comment 4 Lee McPherson 2014-09-30 23:46:50 UTC
Sorry, the solution I uploaded has an old version of forms, but updating it to 1.2.2 gives the same results.

As for the preview 1.2.3, it doesn't change anything.  Same bug.
Comment 5 Urmil Setia 2014-12-29 10:58:39 UTC
Hi, I am also facing the same issues. When I tap the items in the list view on Windows Phone, the items in the first list group don't fire the ItemTapped event and the items in the second section fire ItemTapped but the Item returned in the ItemTappedEventArgs is the item at that index in the previous group. 

Please let me know, if you have any solution for this.
Comment 6 Matthew Leibowitz 2015-03-29 00:00:19 UTC
Sorry - wrong issue closed
Comment 7 Eric Maupin 2015-05-20 12:21:10 UTC
This appears to be fixed in the current version.