Back to Devexpress

ImageSlider.CanGetNextPrevImage Event

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-imageslider-7fb74308.md

latest2.4 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event EventHandler<CanGetNextPrevImageEventArgs> CanGetNextPrevImage
vb
<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:

PropertyDescription
CanGetImageGets or sets whether an image in the current sliding direction can be displayed. If not - corresponding navigation button will be disabled.
IsNextSpecifies 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

Virtual Mode

ImageSlider Class

ImageSlider Members

DevExpress.XtraEditors.Controls Namespace