DiagramControl.AddingNewItem Event

Fires each time a new item is added to the diagram by the end-user (e.g., dropped from the toolbox, drawn using a tool).

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v20.1.dll


public event EventHandler<DiagramAddingNewItemEventArgs> AddingNewItem
Public Event AddingNewItem As EventHandler(Of DiagramAddingNewItemEventArgs)

Event Data

The AddingNewItem event's data class is DevExpress.Xpf.Diagram.DiagramAddingNewItemEventArgs.


Set the event parameter's DiagramAddingNewItemEventArgs.Cancel property to true to prevent adding an item to the diagram.

See Also