Skip to main content

Data Binding Using Mapping Properties

When the ImageSlider binds to an arbitrary data source, a MVCxImageSliderItem object is created automatically for every recognized data item. The individual item’s characteristics (such as text, name, image path, navigation location, and tooltip text) are obtained from the data fields (item attributes) of corresponding data items. The ImageSlider exposes its specific data-related properties, allowing you to specify which data source fields the item information should be retrieved from. The table below lists these properties and the corresponding properties of a MVCxImageSliderItem object.

ImageSlider data-related properties Corresponding MVCxImageSliderItem object properties
ImageSliderSettings.ImageUrlField ImageSliderItem.ImageUrl (via MVCxImageSliderItem.ImageUrl)
ImageSliderSettings.ThumbnailUrlField ImageSliderItem.ThumbnailUrl (via MVCxImageSliderItem.ThumbnailUrl)
ImageSliderSettings.NameField ImageSliderItem.Name (via MVCxImageSliderItem.Name)
ImageSliderSettings.NavigateUrlField ImageSliderItem.NavigateUrl (via MVCxImageSliderItem.NavigateUrl)
ImageSliderSettings.TextField ImageSliderItem.Text (via MVCxImageSliderItem.Text)
ImageSliderSettings.ImageContentBytesField ImageSliderItem.ImageContentBytes (via MVCxImageSliderItem.ImageContentBytes)
ImageSliderSettings.ThumbnailContentBytesField ImageSliderItem.ThumbnailContentBytes (via MVCxImageSliderItem.ThumbnailContentBytes)

The picture below demonstrates the data retrieval path during the binding process to a list of objects containing image item settings.

MVC_ImageSlider_Binding_via_Mapping

See Also