Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to drag and drop 1 element between 2 TreeListView objects.
The 2 trees are builds by binding with different object types.
I'm using WPF with DevExpress library.


Thank you for your support

What I have tried:

I tried with many events like DragOver, DragDrop ... but I didn't succed
I imgine I have to do the conversion at one time...
Posted
Updated 22-May-18 20:35pm

1 solution

Its not simple to solve this but looking up some samples should help. Consider implementing drag and drop beween 2 simpler controls (eg. 2 listboxes) if the tree view seems to be a too complex beast to start with:

- Drag & Drop in WPF … Explained end to end .. – Jaime Rodriguez[^]

- Drag and Drop Feature in WPF TreeView Control[^]

- The DotNet Experience: WPF TreeView – Drag ‘n‘ Drop[^]

- Windows Drag and Drop within a TreeView sample in C# for Visual Studio 2008[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900