ImageZoomNavigatorSettings.Items Property
Gets the collection of items in the ImageZoomNavigator.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Property Value
Type | Description |
---|---|
ImageZoomNavigatorItemCollection | An ImageZoomNavigatorItemCollection instance that is the collection of items. |
Remarks
Use the Items property to access a collection of items within the ImageZoomNavigator. The collection provides methods and properties that allow you to add new items and remove existing ones, access individual items, etc.
If the ImageZoomNavigator is bound to data, the Items property is ignored.
Example
@Html.DevExpress().ImageZoomNavigator(settings => {
settings.Name = "zoomNavigator";
...
settings.Items.Add("~/Images/small/img1.jpg", "~/Images/large/img1.jpg");
settings.Items.Add("~/Images/small/img2.jpg", "~/Images/large/img2.jpg");
settings.Items.Add("~/Images/small/img3.jpg", "~/Images/large/img3.jpg");
...
}).GetHtml()
See Also