1

I have sophisticated data template of the item in listbox similar to this I need to click anywhere inside this item and drag it up or down in the list. Maybe somebody has already implemented such functionality.

Thanks!

Sasha Reminnyi
  • 3,442
  • 2
  • 23
  • 27
  • 1
    check this one: http://stackoverflow.com/questions/3350187/wpf-c-rearrange-items-in-listbox-via-drag-and-drop and this as well: http://stackoverflow.com/questions/4704358/drag-and-drop-listbox-for-wpf – Davide Piras Oct 05 '11 at 11:11

2 Answers2

1

Yes, Bea Stollnitz has and the code is posted here

Rachel
  • 130,264
  • 66
  • 304
  • 490
1

This is a very good example for for drag and drop. There are some bugs in code but you can find their solutions in the comment area.

Nivid Dholakia
  • 5,272
  • 4
  • 30
  • 55
  • Here's another example i made a sample application that you will find usefull in which you can actually see what item is dragged with mouse pointer.http://stackoverflow.com/questions/7691041/how-to-implement-single-item-dragdrop-wpf-listview-in-mvvm-way/7691199#7691199 – Nivid Dholakia Oct 14 '11 at 15:18