DragDropHelper.GetDroppedObject Method (DependencyObject, DragEventArgs, EditingContext)

.NET Framework (current version)
 
Note: This API is now obsolete.

Retrieves the object that is being dropped in a drag-and-drop operation.

Namespace:   System.Activities.Presentation
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

[ObsoleteAttribute("This method does not support dropping multiple items. Use \"public static IEnumerable<object> GetDroppedObjects(DependencyObject dropTarget, DragEventArgs e, EditingContext context)\" instead.")]
public static object GetDroppedObject(
	DependencyObject dropTarget,
	DragEventArgs e,
	EditingContext context
)

Parameters

dropTarget
Type: System.Windows.DependencyObject

The location for the drag.

e
Type: System.Windows.DragEventArgs

The drag event data.

context
Type: System.Activities.Presentation.EditingContext

The editing context.

Return Value

Type: System.Object

The object that was dropped.

.NET Framework
Available since 4.0
Return to top
Show: