Class PropertyControlClassFactory
Used to change which IPropertyControl that is used to display an user interface for a PropertyData class. This class supports the EPiServer infrastructure and is not intended to be used directly from your code.
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 PropertyControlClassFactory class. This member supports the EPiServer infrastructure and is not intended to be used directly from your code.
Declaration
public PropertyControlClassFactory(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | 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 |
|---|---|
| PropertyControlClassFactory | 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<IPropertyDefinitionRepository> | The property definition repository. |
TemplateControlLoader
Gets or sets the TemplateControlLoader instance.
Declaration
public Injected<TemplateControlLoader> TemplateControlLoader { get; set; }
Property Value
| Type | Description |
|---|---|
| Injected<TemplateControlLoader> | 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 |
|---|---|---|
| PropertyData | propertyData | The PropertyData. |
Returns
| Type | Description |
|---|---|
| IPropertyControl | 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 |
|---|---|---|
| PropertyData | propertyData | The PropertyData. |
| System.Web.HttpContextBase | httpContext | The HTTP context. |
| System.Web.UI.TemplateControl | templateControl | The template control. |
| System.String | tag | The tag used to resolve the template. |
Returns
| Type | Description |
|---|---|
| IPropertyControl | 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.Type | propertyType |
Returns
| Type | Description |
|---|---|
| System.Collections.ObjectModel.ReadOnlyCollection<System.Type> |
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.Type | baseType |
Returns
| Type | Description |
|---|---|
| System.Boolean |
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.Type | baseType | Type of the base class. |
| System.Type | mappedType | Type of the mapped class. |