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

ListView wont keep selection

$
0
0

I am trying to do a simple ListView that binds to a collection of strings. I have implemented the ItemSource and SelectedItem properties in the VM; when the ListView initializes it binds to both properties which return the correct values. The list of strings is populated in the ListView but nothing is selected even though the SelectedItem property returned the item that is supposed to be selected. Worse yet when I tap on the ListView items I get a quick flash of the row being selected then the item goes back to unselected.

This is too simple not to work so I much be doing something wrong, please help.

Thanks,
Steve


Viewing all articles
Browse latest Browse all 75885

Trending Articles



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