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

ViewCell isEnabled = false. Cell still responds to tap

$
0
0

Hi,

I'm trying to get Custom ViewCells in my ListView not to respond to taps. Currently, when tapped in Android or iOS the cell will lighten / darken respectively. I have

listView.SelectedItem = null;

when the item is tapped, so the cell doesn't stay selected, but I want to eliminate all visual evidence of the cell being tapped. If I tap in the view where there is no cell, there are no visual cues that I am tapping. I would like the same for some of the cells. I tried setting isEnabled = false on the cell, as the API says "Elements that are not enabled do not participate in hit detection", but that doesn't seem to have any effect.

The Custom ViewCell has a label in a StackLayout, and I tried setting IsEnabled = false on both of those Elements, without success as well.

Any help?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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