Class PropertyControlClassFactory
Used to change which IProperty
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class PropertyControlClassFactory : DefaultClassFactory, IClassFactory
Constructors
PropertyControlClassFactory(String)
Initializes a new instance of the Property
Declaration
public PropertyControlClassFactory(string id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The id. |
Properties
Instance
Gets the global instance of PropertyControlClassFactory. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public static PropertyControlClassFactory Instance { get; }
Property Value
Type | Description |
---|---|
Property |
The global instance of PropertyControlClassFactory. |
PropertyDefinitionRepository
Gets or sets the property definition repository.
Declaration
public Injected<IPropertyDefinitionRepository> PropertyDefinitionRepository { get; set; }
Property Value
Type | Description |
---|---|
Injected<IProperty |
The property definition repository. |
TemplateControlLoader
Gets or sets the Template
Declaration
public Injected<TemplateControlLoader> TemplateControlLoader { get; set; }
Property Value
Type | Description |
---|---|
Injected<Template |
The property definition repository. |
Methods
ClearRegistrations()
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public override void ClearRegistrations()
Overrides
CreatePropertyControl(PropertyData)
Creates an IPropertyControl for a given PropertyData. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual IPropertyControl CreatePropertyControl(PropertyData propertyData)
Parameters
Type | Name | Description |
---|---|---|
Property |
propertyData | The PropertyData. |
Returns
Type | Description |
---|---|
IProperty |
A IPropertyControl that can be used to render an user interface for the PropertyData. |
CreatePropertyControl(PropertyData, HttpContextBase, TemplateControl, String)
Creates an IPropertyControl for a given PropertyData. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public virtual IPropertyControl CreatePropertyControl(PropertyData propertyData, HttpContextBase httpContext, TemplateControl templateControl, string tag)
Parameters
Type | Name | Description |
---|---|---|
Property |
propertyData | The PropertyData. |
System. |
httpContext | The HTTP context. |
System. |
templateControl | The template control. |
System. |
tag | The tag used to resolve the template. |
Returns
Type | Description |
---|---|
IProperty |
A IPropertyControl that can be used to render an user interface for the PropertyData. |
GetControls(Type)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public ReadOnlyCollection<Type> GetControls(Type propertyType)
Parameters
Type | Name | Description |
---|---|---|
System. |
propertyType |
Returns
Type | Description |
---|---|
System. |
IsRegistered(Type)
This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public override bool IsRegistered(Type baseType)
Parameters
Type | Name | Description |
---|---|---|
System. |
baseType |
Returns
Type | Description |
---|---|
System. |
Overrides
RegisterClass(Type, Type)
Registers a class mapping. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public override void RegisterClass(Type baseType, Type mappedType)
Parameters
Type | Name | Description |
---|---|---|
System. |
baseType | Type of the base class. |
System. |
mappedType | Type of the mapped class. |