Version

Stop Images Looping Continuously

When the end user is navigating through the images using the Next or Previous buttons, the images will loop continuously. However, in some cases you may not want your end user to be able to loop through the images continuously. For example, if you have an array of images that describe an installation process, it would be incorrect to show the first image again after the last image.

By default, the WrapAround property is set to True. This property can only be set on the server; however, it can be retrieved on the client via the get_wrapAround() method.

The example code below shows you how to set the WrapAround property to False.

WebImageViewer_Stop_Images_Looping_Continuously_01

In Visual Basic:

' Sets WrapAround to False
Me.WebImageViewer1.WrapAround = false

In C#:

// Sets WrapAround to False
this.WebImageViewer1.WrapAround = false;