windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-imageslider-7fb74308.md
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.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Events")]
public event EventHandler<CanGetNextPrevImageEventArgs> CanGetNextPrevImage
<DXCategory("Events")>
Public Event CanGetNextPrevImage As EventHandler(Of CanGetNextPrevImageEventArgs)
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). |
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