Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drag & Drop in Xamarin forms

How do we add drag & drop functionality in Xamarin..

After lot of googling I found the following official link for drag & drop for xamarin..

https://blog.xamarin.com/android-tricks-supporting-drag-and-drop-in-an-app/

But it uses the android native code only.

My questions:

  1. In Xamarin is it possible to implement drag & drop functionality without native codes?

  2. If answer - No -> How do we achieve the drag & drop listeners for all platforms?

I searched google & the official forum and nothing found.. Someone help me..Thanks..

like image 686
Ranjithkumar Avatar asked Aug 30 '16 06:08

Ranjithkumar


2 Answers

2020 it looks like we have it. You still need to set up DragAndDrop_Experimental flag.

https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/gestures/drag-and-drop

like image 63
valentasm Avatar answered Sep 27 '22 20:09

valentasm


Please check the below links,may it helps you.

https://developer.xamarin.com/recipes/ios/input/touch/drag_rotate_image/

http://forums.xamarin.com/discussion/6521/how-to-perform-drag-and-drop-functionality

https://pumpingco.de/blog/adding-drag-and-drop-to-your-android-application-with-xamarin/

like image 41
Ravindra Kumar Avatar answered Sep 27 '22 19:09

Ravindra Kumar