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.
Unfortunately, activation email could not send to your email. Please try again.

swipe left/right

Thread ID:

Created:

Updated:

Platform:

Replies:

132219 Aug 21,2017 09:14 AM Aug 24,2017 10:15 PM Xamarin.Forms 3
loading
Tags: SfListView
FLecointe
Asked On August 21, 2017 09:16 AM

Hi! First, sorry in advance for my poor English.
I started in xamarin programming and had to use syncfusion to implement a left or right swipe system in a listview.

Actually I have created my SfListView, allowing it to display an icon if you swipe it left or right.
I know how to launch a SwipeEnded action, but I am unable to differentiate a left swipe from a right swipe, out I need to do a different action on the case.

I try to search on the forum and via google, But I do not find anything ... I also try different things (such as trying to use "SwipeDirection" in an if, without success...How can I do it?

Dinesh Babu Yadav [Syncfusion]
Replied On August 22, 2017 02:00 AM

Hi FLecointe, 
 
Thank you for using Syncfusion Products 
 
You can achieve the reported requirement “Need to perform different actions for left and right swipe” by loading different views to both left and right swipe by using LeftSwipeTemplate(swiping towards right) and RightSwipeTemplate(swiping towards left). Please refer the following UG documentation link for more information about “Working with swiping” in SfListView. 
 
 
Also, you can find the swiped item’s direction, item data, item index and offset value from SwipeEndedEventArgs and please refer the following UG documentation link for more reference. 
 
 
For your reference, we have attached the working sample which shows Favorite icon in left swipe and Delete icon in right swipe and you can download it from the below link. 
 
 
Please let us know if you require further assistance. 
 
Regards, 
Dinesh Babu Yadav 
 


FLecointe
Replied On August 24, 2017 03:13 AM

that work, thanx :)


Dinesh Babu Yadav [Syncfusion]
Replied On August 24, 2017 10:15 PM

Hi FLecointe, 
 
Thanks for the update. 
 
Regards, 
Dinesh Babu Yadav 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;