When an item in the ListView is selected and you tab it again no ItemTapped event is fired. This is not a ItemSelected event but ItemTapped so I think it should fire every time.
Not sure if this is a bug or a feature; to me it is a bug as it does not seem to mirror the Android/iOS Forms behavior.
Hello World!
Hello World!
Hello World!
I created a simple reproduction project but I can't reproduce your behaviors.
ListView listView = new ListView
{
ItemsSource = new List
};
listView.ItemTapped += (object sender, ItemTappedEventArgs e) => Debug.WriteLine("Item tapped : " + e.Item);
listView.ItemSelected += (object sender, SelectedItemChangedEventArgs e) => Debug.WriteLine("Item selected : " + e.SelectedItem);
Output:
Item selected : Item 1
Item tapped : Item 1
Item tapped : Item 1
Item tapped : Item 1
Item tapped : Item 1
Item tapped : Item 1
Item selected : Item 2
Item tapped : Item 2
Item selected : Item 1
Item tapped : Item 1
Item selected : Item 2
Item tapped : Item 2
Item tapped : Item 2
Item tapped : Item 2
That is very interesting; let me try to isolate the behavior from the project and try it as well.
Demo project: https://github.com/tluyben/IssueReportApps/tree/master/WPFListViewApp
For me, if i press Item1 as much as I want, it will show only once tapped.
I've was able to reproduce in the demo project using the included 3.1.0.697729 libs but the demo project seems to be working correctly using the 4.0.0 branch. Guessing it was fixed with something else?
Included in case any of this matters somehow:
VisualStudio 16.0.4
Windows 10