punker76 / gong-wpf-dragdrop

The GongSolutions.WPF.DragDrop library is a drag'n'drop framework for WPF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next item gets dragged when starting dragging in lower half of item

MarkusPalcer opened this issue · comments

I want the user to be able to drag Items in an ItemsControl.
My Items consist of a GroupBox which contains a ComboBox and a Button.
When I start dragging an Item from its upper half, the item itself starts getting dragged.
When I however start the dragging from the lower half, the next item gets dragged (the ghostly adorner shows the next item and the index that the drop handler gets is also wrong).

I created a minimal sample and a video showing the effect. The sources of the sample as well as the video are attached.
In the minimal sample the drop handler doesn't do anything, so no actual reordering takes place, but that could easily be added.

This version uses the sources of the Alpha 13, but the effect also happens with the latest non-prerelease version.

WpfApplication2.zip
sample video.zip

@MarkusPalcer Thx for the sample and the video!

Thx for the fix