Skip to main content

ToolboxControl.DragItemStart Event

Fires when an item’s drag operation starts. Allows you to replace the cursor icon and cancel the drag operation.

Namespace: DevExpress.XtraToolbox

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event ToolboxDragItemStartEventHandler DragItemStart

Event Data

The DragItemStart event's data class is ToolboxDragItemStartEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets whether a drag-and-drop operation should be canceled.
Handled Gets or sets whether an event was handled; if handled, the default actions are not required.
Image Gets or sets the image displayed near the mouse cursor during drag-and-drop operations.

Remarks

The ToolboxControl provides you with events that allow you to manage a drag-and-drop operation during all its stages: the operation on an item is started, the item is being dragged, and the item has been dropped. The events below correspond to each stage of a drag-and-drop operation:

At all stages of the drag-and-drop operation, you can get access to the collection of items on which the operation is performed using the Items event argument. The Item event argument returns the first item in the collection.

See Also