Bug 55317 - on iOS only, ItemSelected doesn't fire when the ListView doesn't RecycleElement
Summary: on iOS only, ItemSelected doesn't fire when the ListView doesn't RecycleElement
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.3
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jimmy [MSFT]
Depends on:
Reported: 2017-04-18 08:55 UTC by François M
Modified: 2017-06-07 18:30 UTC (History)
4 users (show)

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

sample project (142.12 KB, application/x-zip-compressed)
2017-04-18 16:10 UTC, Jimmy [MSFT]

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:

Description François M 2017-04-18 08:55:33 UTC
I had a ListView with RecycleElement. I wasn't happy with the recycling being visible to the user (maybe another post on that issue later) so I commented out the line to stop recycling.
However, my ItemSelected delegate stopped being called on iOS. Working fine on Android and UWP.

protected BaseSocialListView()

var suggestionsList = new BaseSocialListView();
suggestionsList.ItemSelected += (sender, e) =>
                //Not called anymore on iOS only
Comment 1 Jimmy [MSFT] 2017-04-18 16:10:03 UTC
Created attachment 21599 [details]
sample project

I created a new sample project to test this, but I was not able to reproduce the issue. I've attached the project.

I tested with Forms 2.3.4 and 2.3.5-pre1 on an iOS 10.3 simulator and I observed the ItemSelected delegate being called with RecycleElement both enabled and disabled.

If you are experiencing this issue with Forms 2.3.4 or newer, please attach a project that reproduces the issue so we can look into this further. Note, we my close this report after thirty days of no response so when providing the requested information set the report status to NEW. Thanks!
Comment 2 François M 2017-04-18 16:13:08 UTC
I'll try your sample project on 2.3.3 which I'm running and revert.
Comment 3 François M 2017-04-18 19:20:39 UTC
I can't reproduce it on a simple sample project so far. I'll add pieces from my code until it shows the unexpected behavior I described and then revert.
Comment 4 Jimmy [MSFT] 2017-06-07 18:30:41 UTC
Because we have not received a follow up in over 4 weeks, I'm going to go ahead and close this. However if you continue experiencing this issue, please reopen the ticket and attach a reproduction project so we can look into this further. Thanks!