Open tusharsjagdale opened 3 years ago
I have a minimal MVVM project (using Prism) to reproduce this issue that I can share if helpful.
The problem comes down to the fact that there doesn't seem to be a template or style for a group in a CollectionView
that includes the region for the items in the group. There is a GroupHeaderTemplate
for the group header and there is ItemTemplate
for items, both of which can have drop handlers, but the region under a group header that doesn't have items in it is not associated with the group. A drop on this area cannot be handled, even by a DropGestureRecognizer
set on the whole CollectionView
.
This means that currently it is impossible to drag and drop items between groups in a CollectionView
.
Have you seen this example: https://devblogs.microsoft.com/xamarin/collectionview-drag-and-drop/? Could you attach a small sample where reproduce the issue?
Reproducer here: TestGroupedDragAndDrop.zip Try dragging an item from one group to another group. Notice that you can drop on the group header, a different handler allows you to drop on other items in the group, but there is no way to drop on the white space to the right of groups that don't contain a multiple of three items.
@jsuarezruiz - could you update the labels on this issue assuming this repro is adequate?
Description
Steps to Reproduce
Expected Behavior
Actual Behavior
Basic Information
Environment
Show/Hide Visual Studio info
``` ```Build Logs
Screenshots
Reproduction Link
Workaround