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

DiagramControl.CustomItemGiveFeedback Event

Occurs while diagram items are dragged.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v24.2.dll

NuGet Package: DevExpress.Win.Diagram

#Declaration

[DiagramCategory(DiagramCategory.Behavior)]
public event EventHandler<DiagramCustomItemGiveFeedbackEventArgs> CustomItemGiveFeedback

#Event Data

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

Property Description
Cursor Gets or sets the cursor type used during the drag-and-drop operation.
Effects Gets a value that indicates the effects of the drag-and-drop operation.
Items Returns the list of items that are objects of the drag-and-drop operation.

#Remarks

Handle the CustomItemGiveFeedback event to modify the appearance of the mouse pointer during the drag operation. See the example below.

void diagram_CustomItemGiveFeedback(object sender, DiagramCustomItemGiveFeedbackEventArgs e)
{
    e.Cursor = DragDropCursor.Custom;
    Cursor.Current = Cursors.No;
}
See Also