Interface
ICustomPropertyProvider

Represents the custom property provider.

Definition

Namespace:Telerik.Windows.Persistence.Services

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public interface ICustomPropertyProvider : IPersistenceProvider

Methods

GetCustomProperties()

Gets the custom properties.

Declaration

cs-api-definition
CustomPropertyInfo[] GetCustomProperties()

Returns

CustomPropertyInfo[]

InitializeObject(object)

Initializes the object. Intended to place the context object in an appropriate state, before setting any properties.

Declaration

cs-api-definition
void InitializeObject(object context)

Parameters

context

object

The context - the owner object.

InitializeValue(CustomPropertyInfo, object)

Initializes the saved value. Invoked when the deserialized value is null. See remarks.

Declaration

cs-api-definition
object InitializeValue(CustomPropertyInfo customPropertyInfo, object context)

Parameters

customPropertyInfo

CustomPropertyInfo

The custom property info.

context

object

The context.

Returns

object

Returns the initialized value.

Remarks

When the deserialized fails to recreate the saved value (i.e. create a new instance of the class or the value is null) this method will be invoked to provide a valid value.

ProvideValue(CustomPropertyInfo, object)

Provides the value for a specific property.

Declaration

cs-api-definition
object ProvideValue(CustomPropertyInfo customPropertyInfo, object context)

Parameters

customPropertyInfo

CustomPropertyInfo

The custom property info.

context

object

The context - the owner object.

Returns

object

Returns the value for the specific property.

RestoreValue(CustomPropertyInfo, object, object)

Restores the value for a specific property.

Declaration

cs-api-definition
void RestoreValue(CustomPropertyInfo customPropertyInfo, object context, object value)

Parameters

customPropertyInfo

CustomPropertyInfo

The custom property info.

context

object

The context - the owner object.

value

object

The saved value for the property.