DragDropHelper.AllowDrop(IDataObject, EditingContext, Type[]) Method

Definition

Indicates whether the designer can accept data that the user drags onto it.

C#
public static bool AllowDrop(System.Windows.IDataObject draggedDataObject, System.Activities.Presentation.EditingContext context, params Type[] allowedItemTypes);

Parameters

draggedDataObject
IDataObject

The data object that is being dragged.

context
EditingContext

The EditingContext for the DragDropHelper.

allowedItemTypes
Type[]

The types that are allowed to be dragged.

Returns

true if drag-and-drop operations are allowed in the designer; otherwise, false.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1