Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
585
Drag / drop
posted

Hi,

I've started using the new xamDataTree control in my project and have a question regarding drag / drop. I've enabled drag / drop because I want my users to be able to order items within the tree. Taking an example, let's say I have the following items in my tree:

- ParentNode
      NodeA
      NodeB
      NodeC
      NodeD

If I drag NodeA between NodeC and NodeD, the DropTarget property of TreeDropEventArgs will give me NodeD. If I drop after NodeD, the DropTarget is still NodeD.

In this example, how do I tell whether the DragSource was dropped before or after NodeD?

Many thanks,

Gary.

Parents Reply Children