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

CollectionView disable selection of an item in collection

$
0
0

I'm working with the CollectionView (with a selection mode of Multiple) and I'm having problems disabling the selection of an item in the collection. As a result, I'm attempting to reverse the selection of the item instead of disabling selection of that item.

I've looked at determining the value of an item passed in the OnSelectionChanged event, and then trying to reverse the action selection (or deselection) of the item, but I'm running into looping issues with the OnSelectionChanged event getting triggered on the reversal of the item. Anyone know a good way to handle this?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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