This example demonstrates how to allow a user to copy dragged rows on the modifier key press. A custom attached property is used to determine whether or not the user wants to copy rows. You can adjust this property in the PreviewKeyDown and PreviewKeyUp event handlers. Then, use it in the DragElementTemplate to modify the drag element appearance accordingly. At last, replace data objects within the DraggedRows collection in the Drop event handler with newly created items.
Question Comments
Added By: Andrew Lee 1 at: 12/12/2015 8:26:52 AM
It appears the code for this example does not correspond with the title/description. Where is the attached property implementation?