Aaaaaaaa
Aaaaaaaa

Reputation: 2114

Silverlight DragDropTarget - just copy, not move

I'd like to ask, how can I in Silverlight 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

Upvotes: 1

Views: 912

Answers (1)

Dmitriyz
Dmitriyz

Reputation: 148

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>

Upvotes: 2

Related Questions