ImageGallerySettings.SetFullscreenViewerTextTemplateContent(Action<ImageGalleryFullscreenViewerItemTemplateContainer>) Method
Gets or sets a template used for displaying the content of the fullscreen viewer text area.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public void SetFullscreenViewerTextTemplateContent(
Action<ImageGalleryFullscreenViewerItemTemplateContainer> contentMethod
)
Parameters
Name | Type | Description |
---|---|---|
contentMethod | Action<ImageGalleryFullscreenViewerItemTemplateContainer> | A method to which a template content rendering is delegated. |
Remarks
Note
Once a template defined using the SetFullscreenViewerTextTemplateContent method is created, it is instantiated within a container object of the ImageGalleryFullscreenViewerItemTemplateContainer type. This container object exposes a set of members which can be useful when designing a template.
The fullscreen viewer text area can be templated at the extension level using the ImageGallerySettings.SetFullscreenViewerItemTextTemplateContent or ImageGallerySettings.SetFullscreenViewerTextTemplateContent property.
- The ImageGallerySettings.SetFullscreenViewerItemTextTemplateContent property specifies a text area template that will be rendered for each item within the extension. When the active item is changed within the fullscreen viewer, the displayed template is also changed.
- The ImageGallerySettings.SetFullscreenViewerTextTemplateContent property specifies a text area template that will be rendered once. When the active item is changed within the fullscreen viewer, the displayed template is not changed.
The thumbnail content of an individual item can be defined using the item’s MVCxImageGalleryItem.SetFullscreenViewerTextTemplateContent property.