Skip to main content

dxGallery

Namespace: Wisej.Web.Ext.DevExtreme

Assembly: Wisej.Web.Ext.DevExtreme (4.1.0.0)

The Gallery is a widget that displays a collection of images in a carousel.

public class dxGallery : dxBase

Constructors​

Instance member dxGallery()​

Constructs a new instance of the dxGallery class.

Example:

The following example creates a gallery that cycles through three images.

var gallery = new dxGallery();
gallery.Options.dataSource = new[]
{
"Images/house1.jpg",
"Images/house2.jpg",
"Images/house3.jpg"
};
gallery.Options.loop = true;
gallery.Options.slideshowDelay = 3000;
gallery.Size = new Size(400, 300);
this.Controls.Add(gallery);

Instance member dxGallery(options)​

Constructs a new instance of the dxGallery class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a gallery with navigation buttons and moves to the next image from server code.

var gallery = new dxGallery(new
{
dataSource = imageUrls,
showNavButtons = true,
showIndicator = true
});
gallery.Size = new Size(400, 300);
this.Controls.Add(gallery);

// show the next image with an animation.
gallery.Instance.nextItem(true);

Implements​