Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How can I access the ViewCell that was selected in a ListView ItemSelected event?

$
0
0

Hi all,

I'm trying to access the ViewCell that was selected in a ListView.ItemSelected event. I know how the access the ListView itself and the selected object, but I'm trying to access the actual ViewCell that was selected to change its height (either using the Cell.ForceUpdateSize() method or changing the Cell.Height property). I managed to find a sample on the Xamarin website (Dynamic ListView Row Resizing) in which the ViewCell was accessed as the parent (parent of the parent, to be exact) of a clicked Image that was in the ViewCell, but I'm wondering if there's a way of doing that from the ListView.ItemSelected event. I can't seem to find anything in the documentation that fits the bill.

Thank you!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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