Reorderable CollectionView of Entry using Drag & Drop

Nathan Sokalski 4,116 Reputation points
2020-12-20T22:50:26.11+00:00

I have a CollectionView with an ItemTemplate containing Entry controls. I want to be able to reorder the items using Drag & Drop. I have tried adding DragGestureRecognizer & DropGestureRecognizer as described at the following:

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

But I could not seem to get this to work. There is supposedly a request for this feature at the following:

https://github.com/xamarin/Xamarin.Forms/issues/4676

But I have no idea how long that will be. What is the best way to allow a user to reorder a CollectionView of Entry controls? Thanks.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,291 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JessieZhang-MSFT 7,701 Reputation points Microsoft Vendor
    2020-12-21T02:19:12.587+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    Yes, we don't have such out-of-the-box controls available to do this right now.

    But you can try Item Reordering in Xamarin ListView (SfListView). It supports displaying the customized view in a template while dragging the item. It can be enabled by setting the SfListView.DragStartMode property to OnHold.

    And from this network www.syncfusion.com , we know that :

    Syncfusion provides licenses and technical support at no charge to eligible small businesses and individual developers. (Companies and individuals with less than $1 million USD in annual gross revenue and 5 or fewer developers).

    Best Regards,

    Jessie Zhang

    ---
    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments