Class ContentControlResolver

Component that resolves which webforms controls that should be used when rendering a xhtmlstring property. That include: PropertyXhtmlString, ContentArea,...

Inheritance
System.Object
ContentControlResolver
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.PropertyControls
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class ContentControlResolver

Constructors

ContentControlResolver()

Declaration
public ContentControlResolver()

Properties

ContentFilter

Gets or sets the filter published.

Declaration
public virtual IContentFilter ContentFilter { get; set; }
Property Value
Type Description
IContentFilter

The filter published.

Remarks

When this value is null then FilterContentForVisitor will be used.

ContentValidator

Gets or sets the content validator that is used at validation.

Declaration
public virtual WebFormsContentValidator ContentValidator { get; set; }
Property Value
Type Description
WebFormsContentValidator

The content validator.

DisplayOptions

Declaration
public Injected<DisplayOptions> DisplayOptions { get; set; }
Property Value
Type Description
Injected<DisplayOptions>

ObjectSerializerFactory

Gets or sets the object serializer to use when serializing to Json.

Declaration
protected Injected<IObjectSerializerFactory> ObjectSerializerFactory { get; set; }
Property Value
Type Description
Injected<IObjectSerializerFactory>

The object serializer.

TemplateControlLoader

Gets or sets the template control loader, which will be used to find the correct controller for rendering the block.

Declaration
public virtual Injected<TemplateControlLoader> TemplateControlLoader { get; set; }
Property Value
Type Description
Injected<TemplateControlLoader>

Methods

BuildCircularReferenceControl(IContent, String, String)

Declaration
public virtual HtmlGenericControl BuildCircularReferenceControl(IContent content, string tagName, string cssClass)
Parameters
Type Name Description
IContent content
System.String tagName
System.String cssClass
Returns
Type Description
System.Web.UI.HtmlControls.HtmlGenericControl

ResolveContentControls(XhtmlString, Control, String, String, String)

Resolves the content controls.

Declaration
public virtual IList<Control> ResolveContentControls(XhtmlString xhtmlString, Control parentControl, string tag, string itemCssClass, string itemTagName)
Parameters
Type Name Description
XhtmlString xhtmlString

The XHTML string.

System.Web.UI.Control parentControl

The parent control.

System.String tag

The tag.

System.String itemCssClass

The item CSS class.

System.String itemTagName

Name of the item tag.

Returns
Type Description
System.Collections.Generic.IList<System.Web.UI.Control>

ResolveContentControls(XhtmlString, Control, String, String, String, Boolean)

Resolves the content controls.

Declaration
public virtual IList<Control> ResolveContentControls(XhtmlString xhtmlString, Control parentControl, string tag, string itemCssClass, string itemTagName, bool enableEditFeatures)
Parameters
Type Name Description
XhtmlString xhtmlString

The XHTML string.

System.Web.UI.Control parentControl

The parent control.

System.String tag

The tag.

System.String itemCssClass

The item CSS class.

System.String itemTagName

Name of the item tag.

System.Boolean enableEditFeatures

if set to true [enable edit features].

Returns
Type Description
System.Collections.Generic.IList<System.Web.UI.Control>

ResolveContentControls(IEnumerable<IStringFragment>, Control, String, String, String)

Resolves which controls that should be used to render the IStringFragment instance in the filteredFragment.

Declaration
public virtual IList<Control> ResolveContentControls(IEnumerable<IStringFragment> filteredFragment, Control parentControl, string tag, string itemCssClass, string itemTagName)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IStringFragment> filteredFragment

The filtered fragment.

System.Web.UI.Control parentControl

The parent control.

System.String tag

The tag.

System.String itemCssClass

The item CSS class.

System.String itemTagName

Name of the item tag.

Returns
Type Description
System.Collections.Generic.IList<System.Web.UI.Control>

ResolveContentControls(IEnumerable<IStringFragment>, Control, String, String, String, Boolean)

Resolves which controls that should be used to render the IStringFragment instance in the filteredFragment. In case a circular dependecy is detected by ContentValidator the "ordinary" renderer for an item will not be used instead a warning is displayed if rendered in edit mode.

Declaration
public virtual IList<Control> ResolveContentControls(IEnumerable<IStringFragment> filteredFragment, Control parentControl, string tag, string itemCssClass, string itemTagName, bool enableEditFeatures)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IStringFragment> filteredFragment

The filtered fragment.

System.Web.UI.Control parentControl

The parent control.

System.String tag

The tag.

System.String itemCssClass

The item CSS class.

System.String itemTagName

Name of the item tag.

System.Boolean enableEditFeatures

if set to true edit attributes are applied.

Returns
Type Description
System.Collections.Generic.IList<System.Web.UI.Control>
Remarks

The contents are filtered using ContentFilter

ToJson(Dictionary<String, Object>)

Declaration
protected string ToJson(Dictionary<string, object> propertyBag)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.Object> propertyBag
Returns
Type Description
System.String

Extension Methods