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

Listview Item Selected Highlight

$
0
0

Ciao
I have two questions about selected item in a listview:
1- in a "grouped listview", if I tap a row, I don't have the row highlighted. I don't know why.
2- in a "non grouped listview", if I tap a row, I have the row highlighted. I would like not to have the row highlithed, so I use this code

listView.ItemSelected += (sender, e) => {
 if (e.SelectedItem == null) return; // don't do anything if we just de-selected the row
 // do something with e.SelectedItem
 ((ListView)sender).SelectedItem = null; // de-select the row
 };

It works, but I have a very fast "flash" (passing from highlighed to no-highlighted status). Is it possible not to have this "flash"?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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