AndreiMisiukevich / CardView

CardsView | CarouselView | CoverflowView | CubeView for Xamarin.Forms
MIT License
710 stars 114 forks source link

How do I swipe away the last item in the panCardView #409

Closed whiterabbitj closed 2 years ago

whiterabbitj commented 2 years ago

panCardView is preventing me from clearing my Observable collection by swiping it out of the view?

How do I swipe away the last item in panCardView? Is there some sort of a flag?

AndreiMisiukevich commented 2 years ago

Hi @whiterabbitj you can add an empty view as the last item of your ItemsSource (use DataTemplateSelector for this). And then check ItemAppeared event or ItemAppearedCommand, if your item is visible then perform clearing your collection