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.
- C#
- VB.NET
public class dxGallery : dxBase
Public Class dxGallery
Inherits dxBase
Constructors
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);
dxGallery(options)
Constructs a new instance of the dxGallery class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);