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

Force ListView to redraw when itemtapped on iOS.

$
0
0

Hey

I have a listview with some custom viewcells. I want the viewcell to change its backgroundcolor when the cell is tapped.
overriding the OnTapped() function worked on android but when i do it on iOS the cell changes the backgroundcolor at first but then when i tap something else it changes it back to the white backgroundcolor. The strange thing is if i scroll the tapped cell out of the screen and then scrolls back, then backgroundcolor is changed the right way. So i think i need someway to redraw the cell when it is tapped but i am not sure how to do it.

Any thoughts?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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