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.v20.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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CanGetNextPrevImage event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.