ComponentOne Basic Library for WPF and Silverlight
DoDragDrop Method (C1DragDropManager)


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.
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 System.Windows.UIElement, _
   ByVal e As System.Windows.Input.MouseEventArgs, _
   ByVal effect As DragDropEffect _
) 
'Usage
 
Dim instance As C1DragDropManager
Dim source As System.Windows.UIElement
Dim e As System.Windows.Input.MouseEventArgs
Dim effect As DragDropEffect
 
instance.DoDragDrop(source, e, effect)
public void DoDragDrop( 
   System.Windows.UIElement source,
   System.Windows.Input.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

Reference

C1DragDropManager Class
C1DragDropManager Members