Hello,
i want to copy a Item from one tree to a child of a second tree with drag and drop.I need my own custom rules to allow them or forbid them.
I try the drag drop options from tree and the drag drop framework. But both doesn't do it.
It should look like two windows explorer. What would you recommend To implement this?
With regards from Germany
Thomas
Hello Thomas,
Thank you for your post. I have been looking into it and I have created a sample project for you with the functionality you want. You can hold down Ctrl if you want to copy the item or just drag and drop it to move it. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan,
i like this solution. But I still have some questions.
I have modified the sample I sent you before, so now you are only able to move or copy nodes from one tree to another. As for the refreshing of the data I can suggest you either implement INotifyColectionChanged interface for your collection or use ObservableCollection for example, which implements it internally.
It seems like that this is the best approach for achieving the functionality you want, but if I think of a better solution for you I will let you know.
Hi Steffan,
thanks for replay but the solution is not suitable for me, I have to check each node to decide whether I can drop it here or not.
any idea?