I have a stack panel with custom controls. User can add or remove items.
I bound MouseDragElementBehavior to each element. Now the user can move them inside the stack panel.
However, the elements are now randomly ordered. Really a mess. They remain where the user left them.
Now I need to make them complex, since the stack panel should be ... Beautiful one after another ...
Therefore, I just need to let the user change the order of the elements using the drag and drop operation, but the elements must be stacked exactly.
There is a DragFinished event, but I really don't see how the behavior moves the elements. I thought it was Margin, but the changes remain 0 ... I do not know what to do next.
Appreciate a little help.
please delete me
source share