Skip to main content

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.1.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