Skip to main content

ImageSlider.ImageChanged Event

Fires when the ImageSlider.CurrentImage property value changes.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Property Changed")]
public event EventHandler<ImageChangedEventArgs> ImageChanged

Event Data

The ImageChanged event's data class is DevExpress.XtraEditors.Controls.ImageChangedEventArgs.

Remarks

The ImageSlider.CurrentImage property specifies the image currently displayed in the ImageSlider control. The ImageChanged event fires when the ImageSlider.CurrentImage property value is changed. The displayed image can be changed by an end-user with a click on the previous or next button, with a slide gesture, or due to the previously displayed image having been deleted from the ImageSlider.Images or ImageSlider.ImageList collection. The Image event argument provides access to the new image.

The currently displayed image can also be set using the ImageSlider.CurrentImageIndex property, which specifies the index of the image in the ImageSlider.Images or ImageSlider.ImageList collection. If the ImageSlider.CurrentImageIndex property value changes, the ImageSlider.CurrentImageIndexChanged event fires. If the displayed image is changed due to the previously displayed image having been deleted from the ImageSlider.Images or ImageSlider.ImageList collection, the ImageChanged event fires, while the ImageSlider.CurrentImageIndexChanged event does not fire, since the currently displayed image index is not changed.

See Also