A newer version of this page is available. Switch to the current version.

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

Declaration

[DXCategory("Events")]
public event EventHandler<CanGetNextPrevImageEventArgs> CanGetNextPrevImage
<DXCategory("Events")>
Public Event CanGetNextPrevImage As EventHandler(Of CanGetNextPrevImageEventArgs)

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