Drag & Drop in Xamarin forms

后端 未结 3 913
悲&欢浪女
悲&欢浪女 2020-12-18 21:39

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://

相关标签:
3条回答
  • 2020-12-18 22:04

    Xamarin.Forms does not appear to support that kind of touch. Event handlers for on touch would have to be written in the native implementations with a dependency injection pattern for accessing them from the shared code.

    The only built in gestures recognized are tap, pinch and pan.

    Using the below link it should not be too difficult to get drag and drop up and running.

    https://developer.xamarin.com/guides/cross-platform/application_fundamentals/touch/

    https://developer.xamarin.com/guides/xamarin-forms/dependency-service/introduction/

    0 讨论(0)
  • 2020-12-18 22:05

    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

    0 讨论(0)
  • 2020-12-18 22:14

    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/

    0 讨论(0)
提交回复
热议问题