Request

Response

    ImageViewerDescriptor class

    Provides a descriptor implementation for image viewer input elements in custom forms. This class extends BaseInputDescriptor to include image-specific functionality such as image hash management and display height constraints. Image viewer descriptors are used to render image viewer components in the Connector UI. When an image needs to be displayed, the UI invokes ICustomForm.GetInputContentAsync to retrieve the image content in binary form. This content is cached after the initial request and only re-fetched when the ImageHash value changes. If the same hash is returned, the UI assumes the image is unchanged and avoids redundant requests.

    public class ImageViewerDescriptor : BaseInputDescriptor, IImageViewerDescriptor
    

    Public Members

    namedescription
    ImageViewerDescriptor(…) Initializes a new instance of the ImageViewerDescriptor class.
    ImageHash { get; set; } Gets or sets the hash identifier for the image to be displayed. This hash is used by the Connector UI to determine whether new image content should be fetched via the ICustomForm.GetInputContentAsync callback. If the hash changes, the image viewer will request updated content. If the hash remains the same, the UI will reuse cached image content to avoid unnecessary calls to ICustomForm.GetInputContentAsync.
    MaxHeight { get; set; } Gets or sets the maximum height in pixels for the displayed image. This property controls the vertical size constraint of the image viewer component on the custom form. Defaults to 0 (no height constraint).

    See Also