Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DragDropBehavior(Type, Boolean, Boolean, Boolean, Boolean, DragDropEvents) Constructor

Initializes a new DragDropBehavior class instance with the specified settings. For internal use.

Namespace: DevExpress.Utils.DragDrop

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public DragDropBehavior(
    Type dragDropBehaviorSourceType,
    bool previewVisible = true,
    bool insertIndicatorVisible = true,
    bool allowDrop = true,
    bool allowDrag = true,
    DragDropEvents events = null
)

#Parameters

Name Type Description
dragDropBehaviorSourceType Type

The Type of the control to which the Behavior is attached.

#Optional Parameters

Name Type Default Description
previewVisible Boolean True

true to show a preview of dragged data elements; otherwise, false.

insertIndicatorVisible Boolean True

true to show where dragged data elements will be inserted; otherwise, false.

allowDrop Boolean True

true to allow users to drop data elements on the attached control; otherwise, false.

allowDrag Boolean True

true to allow users to drag data elements from the attached control; otherwise, false.

events DragDropEvents null

A DragDropEvents component that provides access to the drag-and-drop events.

See Also