of the DragDropManager
can be used along with behaviors. However, we do not support behaviors for the RadTreeView
control yet. This is why you can use the built-in drag&drop logic and modify only the Drop
events. The Drop
event is fired when you drop an item. In the handler you can turn off the default drag&drop logic by setting the drop action to None
(the default value is Move
). This can be done with the following code:
var options = DragDropPayloadManager.GetDataFromObject(e.Data, TreeViewDragDropOptions.Key)
options.DropAction = DropAction.None;
Furthermore, the DragDropCompleted
event is fired after the Drop
. This is why you can implement your custom conversion and drop logic in its handler. Please note that you have to check where the user dropped the item and perform actions accordingly.
For your convenience we implemented this approach in the attached project. Please take a look at it and let us know if it works for you.
Pavel R. Pavlov