Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect when item is swiped in ListView

I'd like to know when an item was swiped in a ListView (vs standard selection)

The ListView has a IsSwipeEnabled property, which turns the swipe animation on/off, but I cant seem to figure out how to detect when an item was actually swiped, nor can I find any event that seems to provide this.

like image 309
Steve Avatar asked Oct 31 '22 21:10

Steve


1 Answers

You either need to monitor the manipulation events and create your own "Swipe" event by tracking the velocity of the gestures, or create your own kind of listitem.

And example of the latter is located here

If you need assistance with a more specific portion of the implementation, response to this post and I will revise my answer accordingly.

Also, don't forget to read up on GestureRecognizer if you haven't already.

like image 181
Tyler Kendrick Avatar answered Nov 12 '22 11:11

Tyler Kendrick