开发者

ListBoxDragDropTarget set Target

开发者 https://www.devze.com 2023-02-16 13:21 出处:网络
I want to allow a target for a ListBoxDragDropTar开发者_如何学JAVAget ListBox. The problem is that I have four ListBox but each pair can do a drop on another one, but no on the another one, I mean,

I want to allow a target for a ListBoxDragDropTar开发者_如何学JAVAget ListBox.

The problem is that I have four ListBox but each pair can do a drop on another one, but no on the another one, I mean, 1 can drop on 2, 3 can drop on 4, but 3 can't drop on 2 or 1.

How can I do this? help!


RoutedEventArguments has OriginalSource which you can use to check who originally generated that event then you can simply set the DragEventArgs.Handled property to true to end the Dragging.

0

精彩评论

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

关注公众号