开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜