


The system handles images and text automatically, but for other content, you'll need to handle the DragStarting and DropCompleted events and use them to construct your own data package.

The drop target, which is the application or area underneath the pointer, processes the data package and returns the type of operation it performed.ĭuring drag and drop, the drag UI provides a visual indication of the type of drag-and-drop operation that’s taking place. When the pointer is released, drop occurs.

The source also indicates the kind of operations it supports: copy, move or link. The drag source, which is the application or area where the drag gesture is triggered, provides the data to be transferred by filling a data package object that can contain standard data formats, including text, RTF, HTML, bitmaps, storage items or custom data formats. Important APIs: CanDrag property, AllowDrop property Drag and drop lets the user transfer data between applications or within an application using a standard gesture (press-hold-and-pan with the finger or press-and-pan with a mouse or a stylus). Drag and drop is an intuitive way to transfer data within an application or between applications on the Windows desktop.
