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

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public void DoDragDrop(
	UIElement source,
	MouseEventArgs e,
	DragDropEffect effect
)
Visual Basic
Public Sub DoDragDrop ( _
	source As UIElement, _
	e As MouseEventArgs, _
	effect As DragDropEffect _
)

Parameters

source
Type: System.Windows..::..UIElement
UIElement that will be dragged.
e
Type: System.Windows.Input..::..MouseEventArgs
MouseEventArgs that contains the mouse position when the drag operation starts.
effect
Type: C1.Silverlight..::..DragDropEffect
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 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