Drag and Drop ListBox for WPF

I'm only looking for a simple one ListBoxwith built-in drag and drop. I think the Silverlight 4 Toolkit has something like this .

BoxList must be able to:

  • reorder by dragging items
  • drag an item from one BoxListto another
  • Preview (ghost version) of the dragged item
  • show the location of the output (for example, the line between the elements into which the dragged button will be inserted)

I hope there is some solution from microsoft (for example, in the toolbox), but if not all, I will be happy with any working solution. For example, I'm wandering around what control was used in reordering the column headers of a DataGrid (by dragging and dropping them).

Thanks for any suggestions.

EDIT: Please do not offer commercial control. This is not for a commercial project, and I do not want to buy it. Thanks you

+3
source share
1 answer

An assembly in a ListBox can perform drag and drop, you just need to handle the drag and drop operations.

I use the going-wpf-dragdrop library

It also contains examples of using it in a WPF application.

0
source

Source: https://habr.com/ru/post/1785698/


All Articles