Basic Library for WPF and Silverlight | ComponentOne
C1.WPF Namespace / C1DragDropManager Class / DoDragDrop Method
System.Windows.UIElement that will be dragged.
System.Windows.Input.MouseEventArgs that contains the mouse position when the drag operation starts.
DragDropEffect supported by the operation.

In This Topic
    DoDragDrop Method (C1DragDropManager)
    In This Topic
    Initiates a drag drop operation using a System.Windows.UIElement as a source, supporting a specified DragDropEffect.
    Syntax
    'Declaration
     
    
    Public Sub DoDragDrop( _
       ByVal source As UIElement, _
       ByVal e As MouseEventArgs, _
       ByVal effect As DragDropEffect _
    ) 
    public void DoDragDrop( 
       UIElement source,
       MouseEventArgs e,
       DragDropEffect effect
    )

    Parameters

    source
    System.Windows.UIElement that will be dragged.
    e
    System.Windows.Input.MouseEventArgs that contains the mouse position when the drag operation starts.
    effect
    DragDropEffect supported by the operation.
    Remarks

    The e is not strictly required, but is usually available since drag drop operations are initiated by mouse actions. If you don't have a System.Windows.Input.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.

    See Also