开发者

Silverlight DragDropTarget - just copy, not move

开发者 https://www.devze.com 2023-03-18 20:12 出处:网络
I\'d like to ask, how can I in Si开发者_StackOverflow中文版lverlight just copy an item with drag&drop, not move, if I\'m using the DragDropTargets?

I'd like to ask, how can I in Si开发者_StackOverflow中文版lverlight just copy an item with drag&drop, not move, if I'm using the DragDropTargets?


I've fount that: Silverlight Toolkit Drag Drop (Part 2): Customizing Drag and Drop Behavior


I guess you need to set the AllowedSourceEffects property for the source *DragDropTarget element, like here:

<toolkit:PanelDragDropTarget VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" AllowedSourceEffects="Copy">
 <!-- here is a panel -->
</toolkit:PanelDragDropTarget>
0

精彩评论

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

关注公众号