Could you please advise …
What I’m trying to achive is to add an adorment to a Group when it’s being dragged over.
I got the process working - but it only seemed to work for nodes dragged within the Diagram canvas - and not for items dragged from the Pallete.
When an item is dragged from the pallete - it seems to use the Pallete’s DragTool until it drags over the Diagram canvas, at which point it starts using the DragTool from the Canvas.
The problem I am getting is that, when it transitions to the diagrams drag tool - it does not DoActivate it.
To work around the problem - I have added some additional logic to activate the Drag tool if it’s not already active. Combined with a few other tweaks, this seems to work, but I’m not sure if there is an out-of-the-box method to do this process.
In addition to this, when an item is dropped onto a Group - I allocate an unique index number to the Node’s Data but at some point the data is lost. It looks like it’s something todo with the Temporary node that has been created. At what point in the Drag drop process can I set data on the node and have it persisted ?