Listbox drag-reorder : Index of the dropped item

后端 未结 2 1731
悲哀的现实
悲哀的现实 2021-01-03 13:37

I\'m using a Listbox wrapped inside a ListBoxDragDropTarget (from the Silverlight toolkit). This ListBox ca be manually reordered by t

2条回答
  •  时光取名叫无心
    2021-01-03 14:01

    I have this exact same problem. I think it may be possible to loop through the rectangles of the items in the ListBox and see if var point = args.GetPosition(myListBox); is within them. But I am hoping for an easier way...

    Edit: The problem with this though, is you don't get the gravity effect that is already built in to silverlight where only half of the above and half of the below rectangle are used to drop it into the list.

提交回复
热议问题