Skip to main content

ImageSlider.CanGetNextPrevImage Event

Occurs when an ImageSlider is ready to slide to the next/previous image and navigation buttons are to be displayed.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public event EventHandler<CanGetNextPrevImageEventArgs> CanGetNextPrevImage

Event Data

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

Property Description
CanGetImage Gets or sets whether an image in the current sliding direction can be displayed. If not - corresponding navigation button will be disabled.
IsNext Specifies the image sliding direction (true for sliding forward, false for sliding backwards).

Remarks

Handling the CanGetNextPrevImage event allows you to enable or disable image sliding to a specific direction (forward or backward). In accordance with this, the ‘Next Image’ and ‘Previous Image’ buttons can be either enabled or disabled.

See the Virtual Mode topic to learn more.

See Also