开发者

Silverlight DragDropTarget - just copy, not move

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜