Scrolling CollectionView while dragging item

Nico 1 Reputation point
2021-06-01T07:40:16.893+00:00

I'm tasked with implementing drag an drop inside a CollectionView. The drag an drop works well but I can't get the CollectionView to scroll through the items while dragging. How do i implement this feature?

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

1 answer

Sort by: Most helpful
  1. JarvanZhang 23,951 Reputation points
    2021-06-02T06:00:18.613+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Hi, Nico. I created a basic demo to test the function and faced the same issue. This problem will also occur in a scrollView. It turns out the drop gesture could not trigger the scroll event and the gesture doesn't provide a method to detect the drop location. For this requirement, it's suggested to post a feature request to the product team on github to get a solution.

    Best Regards,

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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.