Search code examples
silverlight-4.0drag-and-dropsilverlight-toolkitmodifier-key

SL4's ListBoxDragDropTarget modifier keys (Shift, Alt, Ctrl) functionalities.


I've recently started playing with Silverlight 4, and in one of my projects I'm required to use drag & drop functionality.

I use the ListBoxDragDropTarget, which is not a problem. However I was wondering what are the default use of the modifier keys. I was able to understand that Ctrl means copy, but couldn't find the use of Alt, Shift, or when combining them (I saw that when I click Ctrl+Shift, the icon changes, but I don't understand what it does).

I searched a bit on the web, but didn't found any explanation of the default behaviors.


Solution

  • I took a look at the source for the Silverlight Toolkit, and found that the supported modifier keys are Ctrl, Alt, and Shift, plus the combination of Ctrl and Shift.

    • Ctrl tries to do a copy.
    • Ctrl+Shift tries to do a Link (not quite sure what that means).
    • I'm not sure what Alt tries to do... Perhaps a move.

    Overall, these are going to be suggestions, but may not be allowed based on what the droptarget's AllowedEffects are.