Drag and Drop

Feb 3, 2012 at 1:18 PM

Hi how can I do a drag and drop?

I want to have a scrollbar with pictures where I want to drag these icons.

My question really boils down to, how do I detect when a picture is clicked?

Thanks

Coordinator
Feb 4, 2012 at 7:32 PM

If you extend the element class and override the MouseDown method the function will be called when ever the mouse is pressed over the element. You are not going to just be able to move the element due to how the tree hierarchy works unless of course your only dragging about on the same container element. You will probably need to destroy the element on mouse down and recreate it when the mouse is released.