XF-Material-Library
XF-Material-Library copied to clipboard
Long Click on Cards
Using Xamarin Forms
I have a ListView where itens are MaterialCards. A way of capturing a long click on the card would help me a lot.
this is probably more a Xamarin Forms issue than XF-Material. However, Xamarin 4.6 (next version) is supposedly going to release with Long Press functionality for gesture recognizers. You could download the midnight build of Xamarin Forms and add a gesture recognizer around the Card component.
<material:CardView IsClickable="True">
<material:CardView.GestureRecognizers>
<LongPressGestureRecognizer
IsLongPressing="{Binding IsLongPressing}"
LongPressed="{Binding OnLongPressed}" />
</material:CardView.GestureRecognizers>
</material:CardView>`
Thank you very much for your attemption.