Search code examples
androidxamarinxamarin.androidxamarin.formscross-platform

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..


Solution

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

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