I've an ItemControl
, which is bound to a sublist of ViewModel, so each ViewModel is displayed inside a StackPanel.
Some of those viewModel represents an "empty" slot, some of them represent a "filled" viewModel.
So I would like to be able to drag one "filled" slot over an empty slot, but I've no idea where to starts, and how to indicate it can be dropped or not.
I've found some things, but it was about moving one element of a listbox to another listbox by example, in my case I want to drop one element on another element, not sure where I should starts, any clues?
The example that were not about lists were all done in code behind, AND in directly in the usercontrol being moved, not the owner of thoses elements