The ItemSelected event is being triggered twice each time an item is selected on a listview. This issue is only occuring on UWP with the latest version of Forms(126.96.36.199).
I have attached an example reproduction case. When the app launched you will be presented with a very basic listview with 5 items. Selecting one of those items will cause a dialog to appear telling you which item you selected. Additionally, when run in debug mode the item you selected will be printed to the console.
When running on Android or iOS this dialog is only displayed once, and the selected item is printed to the console once. On UWP this happens twice.
Created attachment 17803 [details]
Should be fixed in 2.3.4-pre1. Thank you!
*** Bug 45219 has been marked as a duplicate of this bug. ***
I have checked this issue and observed that this issue has been fixed with Xamarin.Forms 2.3.3-pre3.
Hence closing this issue.
It seems this has resurfaced in 2.3.5-pre1. Not the first time an item is selected, but from the 2nd time, it's triggered twice.
I can confirm that this is still an issue in 2.3.5-pre1. When using the ItemSelected event to display a new page, the back button has to be pressed twice because the event is triggered twice. The status of this bug should be changed, since it has not been fixed.
This is still present, the property is set from here:
Xamarin.Forms.Platform.UAP.dll!Xamarin.Forms.Platform.UWP.ListViewRenderer.OnControlSelectionChanged(object sender, Windows.UI.Xaml.Controls.SelectionChangedEventArgs e)
and after that is is also set by Xamarin.Forms.Platform.UAP.dll!Xamarin.Forms.Platform.UWP.ListViewRenderer.ListOnTapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs args)