Skip to main content

ImageGalleryFolderSettings.ImageSourceFolder Property

Gets or sets the path to the folder that contains images displayed by the control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll


public string ImageSourceFolder { get; set; }

Property Value

Type Default Description


A String value specifying the path to the images.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ImageSourceFolder
ASP.NET MVC Extensions MVCxImageGallery
ASP.NET Web Forms Controls ASPxImageGallery


The ImageSourceFolder property specifies the location of the images that are displayed in the control. The corresponding thumbnails are created automatically.


If the ImageSourceFolder property is specified, the binding to a data source and ASPxImageGallery.Items collection are not in effect.

<dx:ASPxComboBox ID="cbSelectFolder" runat="server" AutoPostBack="True" SelectedIndex="0" Caption="Select Folder">
          <dx:ListEditItem Text="Landscapes" Value="~\Content\Images\landscapes\" />
          <dx:ListEditItem Text="People" Value="~\Content\Images\people\" />
          <dx:ListEditItem Text="Photo Gallery" Value="~\Content\Images\photo_gallery\" />
<dx:ASPxImageGallery ID="imageGallery" runat="server" Width="100%" />

For a full example, see Image Gallery - Folder Binding demo.

See Also