ComponentOne FinancialChart for WPF
DoDragDrop Method



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

Reference

C1DragDropManager Class
C1DragDropManager Members