Bug 22854 - [Windows Phone] ListView: Button in ItemTemplate fires ItemTapped instead of Clicked
Summary: [Windows Phone] ListView: Button in ItemTemplate fires ItemTapped instead of ...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 1.4.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-09-11 01:34 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2016-03-16 12:37 UTC (History)
5 users (show)

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


Attachments
Test case (93.73 KB, application/zip)
2014-09-11 01:34 UTC, Brendan Zagaeski (Xamarin Team, assistant)
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 Brendan Zagaeski (Xamarin Team, assistant) 2014-09-11 01:34:55 UTC
Created attachment 7993 [details]
Test case

On Windows Phone, for ListView: Button in ItemTemplate fires ItemTapped instead of Clicked


## Steps to reproduce

1. Launch the attached test case.

2. Tap either of the buttons labeled ">>>".


## Result on Windows Phone 8.0 emulator (Problematic result)

Both buttons incorrectly open the "Item Tapped" alert.


## Result on Android or iOS ("Good" result)

Both buttons correctly open the "Button Tapped" alert.


## Version information

Xamarin.Forms 1.2.3.6246-pre1
Xamarin Support Library v4 20.0.0.3
Windows Phone Toolkit 4.2013.08.16

Xamarin 3.5.57
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2014-09-11 01:49:17 UTC
This bug is closely related to bug 21501.

The considerations about special view hierarchies and idiosyncrasies across platforms from bug 21501, comment 4 apply here too. In short, it might not be possible to prevent every inconsistency, but it would be nice to fix this particular case if possible.

Thanks!
Comment 2 Seth Rosetter 2014-09-15 14:33:57 UTC
I have confirmed this. Thank you for the reproduction.
Comment 3 Jason Smith [MSFT] 2016-03-16 12:36:22 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we no longer believe it affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.
 
For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d

Warm regards,
Xamarin Forms Team
Comment 4 Jason Smith [MSFT] 2016-03-16 12:37:05 UTC
Forgot to edit that template, I think this is fixed in master, check 2.2.0 when its out (shortly)