Back to Devexpress

ImageSlider.GetImage Event

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-imageslider-f66f26a5.md

latest3.4 KB
Original Source

ImageSlider.GetImage Event

Occurs when an ImageSlider needs to change the currently displayed image to another image.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event EventHandler<GetImageEventArgs> GetImage
vb
<DXCategory("Events")>
Public Event GetImage As EventHandler(Of GetImageEventArgs)

Event Data

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

PropertyDescription
CurrentImageUpdatedGets or sets whether the currently displayed image was successfully changed.
ImageGets or sets an image that is be displayed within the current ImageSlider.
IsFirstGets or sets if the image to be displayed is the first image within the ImageSlider.
IsLastGets or sets if the image to be displayed is the last image within the ImageSlider.
IsNextGets or sets whether the image query is the result of an image sliding forward.
IsPrevGets or sets whether the image query is the result of an image sliding backward.
IsStartUpGets or sets whether the image required is the very first to be uploaded by the current ImageSlider.

Remarks

Handle the GetImage event to pass a required image to the ImageSlider control. The ImageSlider event parameters allow you to define whether the image query is a result of sliding forward, backwards or a start-up image. See the Virtual Mode topic to learn more.

See Also

Virtual Mode

ImageSlider Class

ImageSlider Members

DevExpress.XtraEditors.Controls Namespace