[]
        
(Showing Draft Content)

C1.WPF.C1DragDropManager.DoDragDrop

DoDragDrop Method

DoDragDrop(UIElement, MouseEventArgs, DragDropEffect)

Initiates a drag drop operation using a UIElement as a source, supporting a specified DragDropEffect.

Declaration
public void DoDragDrop(UIElement source, MouseEventArgs e, DragDropEffect effect)
Parameters
Type Name Description
UIElement source

UIElement that will be dragged.

MouseEventArgs e

MouseEventArgs that contains the mouse position when the drag operation starts.

DragDropEffect effect

DragDropEffect supported by the operation.

Remarks
<p>The <code class="paramref">e</code> is not strictly required, but is usually available since drag drop operations 

are initiated by mouse actions. If you don't have a MouseEventArgs to provide, pass null instead.

The method causes the drag operation to start, then returns immediately. The caller is responsible for monitoring and completing the operation using the DragStart, DragEnter, DragOver, and DragDrop events.