Export to GitHub

gong-wpf-dragdrop - issue #43

How to know the item position when moving


Posted on Jan 2, 2012 by Happy Ox

Let's explain the context. I have a treeview or a list with 3 items. I want to move the last one to above the first item. If I apply the move effect it appears a line that shows me the place I would like to place my item. Depending where I put my mouse pointer on the first item I see that line under or abover that first element.

My question. How can I get that position when I perform the drop action?

Thank you

Comment #1

Posted on Jan 2, 2012 by Happy Ox

the code used for adorning is

dropInfo.DropTargetAdorner = DropTargetAdorners.Insert; dropInfo.Effects = DragDropEffects.Move;

Status: New

Labels:
Type-Defect Priority-Medium