All docs
V18.2
20.2 (EAP/Beta)
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
18.1
17.2

Overview - ImageZoomNavigator

ImageZoomNavigator is a data extension that displays a set of thumbnails. Clicking a thumbnail opens a corresponding image within an associated ImageZoom extension.

To see the ImageZoomNavigator in action, refer to its online demo.

Implementation Details

The ImageZoomNavigator is implemented by the ImageZoomNavigatorExtension class. To access its instance, use the ExtensionsFactory.ImageZoomNavigator helper method, which is used to add an ImageZoomNavigator extension to a view. This method's parameter provides access to ImageZoomNavigator settings implemented by the ImageZoomNavigatorSettings class.

The ImageZoomNavigator's client counterpart is represented by the ASPxClientImageZoomNavigator object.

Declaration

The code sample below demonstrates how to add an ImageZoom and ImageZoomNavigator to a project.

View code:

    <div style="float: left;">

        @Html.DevExpress().ImageZoom(
            settings => {
                settings.Name = "imageZoom";
                settings.AssociatedImageZoomNavigatorName = "zoomNavigator";
            }).GetHtml()

        <div style="margin-top: 10px;">

            @Html.DevExpress().ImageZoomNavigator(
                settings => {
                    settings.Name = "zoomNavigator";
                    settings.SettingsAutoGeneratedImages.ImageHeight = Unit.Pixel(350);
                    settings.SettingsAutoGeneratedImages.ImageWidth = Unit.Pixel(350);
                    settings.SettingsAutoGeneratedImages.LargeImageHeight = Unit.Pixel(900);
                    settings.SettingsAutoGeneratedImages.LargeImageWidth = Unit.Pixel(900);
                    settings.SettingsAutoGeneratedImages.ThumbnailHeight = Unit.Pixel(75);
                    settings.SettingsAutoGeneratedImages.ThumbnailWidth = Unit.Pixel(75);
                    settings.SettingsAutoGeneratedImages.ImageCacheFolder = "~/Thumb/";
                    settings.Styles.Thumbnail.ImageHeight = Unit.Pixel(75);
                    settings.Styles.Thumbnail.ImageWidth = Unit.Pixel(75);
                }).BindToFolder("~/Content/ImageZoom/shoes/").GetHtml()

        </div>
    </div>
NOTE

The Partial View should contain only the extension's code.

The code result is demonstrated by the image below.

MVC_ImageZoomNavigator_Overview

See Also