开发者

using the GongSolutions.Wpf.DragDrop library, not able to drop

开发者 https://www.devze.com 2023-02-19 02:01 出处:网络
I am using the GongSolutions.Wpf.DragDrop library. But i implement everything , just simple so i can reorder my listbox, my code:

I am using the GongSolutions.Wpf.DragDrop library. But i implement everything , just simple so i can reorder my listbox, my code:

ListBox ItemsSource="{Binding AvailableQuestions}" 

  dd:DragDrop.IsDragSource="True" 
  dd:DragDrop.IsDropTarget="True" Margin="0,0,0,184" Background="#FF0BCE0B" />

AvailableQuestions is a开发者_StackOverflow list of Strings

but i am not able to drag and drop them .. Someone who see what i am doing wrong?


You need to make sure your binding collection 'AvailableQuestions' is an ObservableCollection type. That should do the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号