When using FluidWrapPanel as the items panel template of a ItemsControl (e.g., to generate child items from a binding MVVM-style), element rearrangement by drag'n'drop was not working because the elements generated from DataTemplate are children of a ContentPresenter, which is the real child panel item added to the FluidWrapPanel. Since FluidMouseDragBehavior is not attached directly to the FluidWrapPanel child but to one of its descendents, the drag begin event was being ignored.
The solution generalizes the solution for the similar problem found with ListBoxes.
When using FluidWrapPanel as the items panel template of a ItemsControl (e.g., to generate child items from a binding MVVM-style), element rearrangement by drag'n'drop was not working because the elements generated from DataTemplate are children of a ContentPresenter, which is the real child panel item added to the FluidWrapPanel. Since FluidMouseDragBehavior is not attached directly to the FluidWrapPanel child but to one of its descendents, the drag begin event was being ignored.
The solution generalizes the solution for the similar problem found with ListBoxes.
Usage example that reproduces the problem: