Class PropertyMediaControl<T>
Defines the control responsible for displaying the PropertyMedia
Inherited Members
Namespace: ImageVault.EPiServer
Assembly: ImageVault.EPiServer.dll
Syntax
public class PropertyMediaControl<T> : PropertyMediaControlBase<T> where T : MediaReference, new()
Type Parameters
Name | Description |
---|---|
T |
Constructors
PropertyMediaControl()
Declaration
public PropertyMediaControl()
Properties
ThumbnailFormatUtil
Gets the ThumbnailFormatUtil of the PropertyMediaControl
Declaration
public override ThumbnailFormatUtil ThumbnailFormatUtil { get; }
Property Value
Type | Description |
---|---|
ThumbnailFormatUtil |
Overrides
Methods
CreateDefaultControlsInner()
Creates the view controls
Declaration
protected override void CreateDefaultControlsInner()
Overrides
DataToString()
Returns a System.String that represents the current PropertyMediaControlBase<T>.
Declaration
protected override string DataToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current PropertyMediaControlBase<T>. |
Overrides
RenderThumbnails(ref T, String, String, DisplayChannelSetting)
Renders the thumbnails on the supplied value
Declaration
public override string RenderThumbnails(ref T value, string virtualPath, string thumbnailCache, DisplayChannelSetting displayChannelSetting)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to use as |
System.String | virtualPath | The virtualPath of the EPiServer plug-in |
System.String | thumbnailCache | The value retrieved from the thumbnail cache. This list should always be used unless it is null or empty |
DisplayChannelSetting | displayChannelSetting |
Returns
Type | Description |
---|---|
System.String | The new value for the thumbnailCache that should be used. |
Overrides
Remarks
This method is called when the UI should be updated to reflect the current selected media. The value represents the value that should be rendered and the thumbnail cache represents the values for the thumbnails that should be used. If that value is missing, then use the supplied value to calculate the URL:s for the thumbnails.
StringToData(String)
Converts the supplied string to an object
Declaration
protected override object StringToData(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | This string comes from the post back from the edit mode |
Returns
Type | Description |
---|---|
System.Object | The object that the string represents or null if no data is entered |