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.

More than one action image when swiping

Thread ID:

Created:

Updated:

Platform:

Replies:

128739 Feb 8,2017 12:44 PM Feb 11,2017 06:17 AM Xamarin.Forms 3
loading
Tags: SfListView
Thomas French
Asked On February 8, 2017 12:44 PM

I am using a listview that has the ability to swipe left and right, both of which have different actions.

My question is:
Is it possible to have multiple images or buttons on one swipe command on the UI?

To clarify my point, a user swipes left and there are three individual images that each perform a different action, instead of the default one.
To make enough room for multiple actionable items the swipe would need to travel further than the default swipe distance, perhaps the entire listview item is replaced by multiple sections of images. 

Dinesh Babu Yadav [Syncfusion]
Replied On February 9, 2017 05:43 AM

Hi Thomas, 
 
Thank you for using Syncfusion products. 
 
You can achieve your requirement “Adding multiple content in the Swipe View” by customizing the swipe template for both left swipe and right swipe by LeftSwipeTemplate and RightSwipeTemplate properties and can perform different actions for the contents in the swipe view by sample level. We have attached the sample for your reference and you can download a copy of it from the below link.   
 
 
In the given sample, LeftSwipeTemplate is customized with two images (Favorite image and Delete image) which performs the different functionalities on tapping the images such as Favorite image marks the item as Favorite and Delete image removes the item from the list. 
 
Please let us know if you require further assistance. 
 
Regards, 
Dinesh Babu Yadav 


Thomas French
Replied On February 9, 2017 12:44 PM

This is exactly what I was looking for.
Thank you very much for the solution, and more importantly, the quick response.

Dinesh Babu Yadav [Syncfusion]
Replied On February 11, 2017 06:17 AM

Hi Thomas, 
 
Thanks for the update. Please get back to us if you need further assistance 
 
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.

;