Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
When using ContentPresenter (https://developer.xamarin.com/api/type/Xamarin.Forms.ContentPresenter/) as per this article: https://xamarinhelp.com/xamarin-forms-page-templates/ everything works fine, and all bindings work, but the ListView's ItemSelected event does not fire.
I'm attaching a reproduction that appears to work and fires ItemSelected. If there's a misunderstanding and/or you're experiencing something different, please do upload your own reproduction with some more info about your environment. I'll set this to not reproducible for the time being.
Created attachment 19960 [details]
Please see email I sent The sample project does not seem to show that the ItemSelected event fires, and when I implement the event handler it is never called.
The event handler method is implemented in App.xaml.cs. If you add a DisplayAlert call to that method, you should see that it shows the item in the alert when selected:
Application.Current.MainPage.DisplayAlert(e.SelectedItem.ToString(), "OK", "Cancel");
Jesse I'm also not able to reproduce the issue on Mac or PC, iOS or Android. The event fires and is handled. v18.104.22.168
If this is still happening for you, please re-open and provide a sample app with details about your environment and what targets you're running on.