Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

ListView ItemSelection bug on Windows Phone

$
0
0

I have a ListView inside of a ContentPage (inside a TabbedPage) whose ItemsSource is databound to a grouped collection on a ViewModel. The data is fine, the databinding works fine, it looks great. I am also databinding the SelectedItem property to a property on the same ViewModel. A new SelectedItem triggers a navigation to a new page.

What is strange is that I cannot get the SelectedItem property to change when I repeatedly tap on the first item in the list. When I move to the second item, I get the same results... UNLESS I tap the very bottom section of the second item. Then, the SelectedItem property changes and we navigate to a new page. All subsequent items change the SelectedItem property just fine. The fact that only part of the item registers a click makes me suspicious...

When I navigate back to the page with the listview, it seems that the highlighted SelectedItem is NOT the selected item that I tapped (even though I saw the "tilt" animation on the item I actually tapped).

I'm attaching a screenshot that shows an example of the ListView that behaves exactly this way. You can see it's nothing special.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>