Copying instead of Moving

Jun 9, 2009 at 11:34 AM

Hi, great component! Imagine a file copy scenario. You drag an item (like a file icon) which actually remains in its drag source. While dragging you display another "being dragged" icon which follows the mouse to the drop targed. When dropping you hide the "being dragged" icon and perform an action on the drop target (e.g. you programatically add a file icon under a separate folder). Generally I'd like not to drag controls but abstract invisible objects represented by the "being dragged icon". All that cool animation stuff would refer to the temporary "being dragged icon" rather than the real control on which dragging has been started. Does your manager support such scenario?

Jun 10, 2009 at 9:19 PM

Hi there!


The manager has been designed the other way round: you actually drag the control you want to drag, the "ghost" is what stays behind.  However, you can manipulate this behaviour to simulate the behaviour you want.  You cannot make it so the object you drag is a ghost, but you could give the object you're draggin a lower opacity on the dragstarted-event, and reset the opacity once it's been dropped.  Or you could even give it a totally different look on the dragstarted-event, to simulate a "being dragged icon".  So: you can simulate it, but the object you're dragging will remain the real object, not the ghost.