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.CustomLoadImage Event

Fires after an end-user selects a file in the ‘Insert Picture’ dialog.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v24.2.dll

NuGet Package: DevExpress.Wpf.Diagram

#Declaration

public event EventHandler<DiagramCustomLoadImageEventArgs> CustomLoadImage

#Event Data

The CustomLoadImage event's data class is DevExpress.Xpf.Diagram.DiagramCustomLoadImageEventArgs.

#Remarks

The CustomLoadImage event allows you to implement a custom logic for loading images. The event’s ImageData property represents the image selected by the end-user. The ImageSource property is set to null by default and allows you to specify a custom image source. The Item property represents the resulting diagram image item. Set the event’s Handled property to true to disable the default loading mechanism and instead, use the implemented custom logic.

See Also