We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to swipe the item indefinitely and layout back on specified position when swipe end?

SfListView allows you to load multiple views in both left and right swipe by customizing the LeftSwipeTemplate and RightSwipeTemplate properties. You can refer the following UG documentation link for more reference.

UG Link: https://help.syncfusion.com/xamarin/sflistview/swiping#multiple-views

 

To swipe an item indefinitely, you need to set the SwipeOffset property by considering the width/height of the SfListView with Orientation accordingly as like following code example.

C#

 

You can layout the swiping item to desired offset value for both right and left swipe accordingly once the swipe action is completed in the SwipeEnded event using SwipeOffset argument in the SwipeEndedEventArgs as like following code example.

C#

 

Now run the application to render the following output.

Left swipe item

Swiping indefinitely

Swipe ended

 

Right swipe item

Swiping indefinitely

Swipe ended

 

 

Sample Link: ListView_CustomSwipe

 

Article ID: Published Date: Last Revised Date: Platform: Control:
8026 10/04/2017 11/27/2017 Xamarin.Forms SfListView
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon