InterfaceICustomPropertyProvider
Represents the custom property provider.
Definition
Namespace:Telerik.Windows.Persistence.Services
Assembly:Telerik.Windows.Controls.dll
Syntax:
public interface ICustomPropertyProvider : IPersistenceProvider
Methods
GetCustomProperties()
Gets the custom properties.
Declaration
CustomPropertyInfo[] GetCustomProperties()
Returns
InitializeObject(object)
Initializes the object. Intended to place the context object in an appropriate state, before setting any properties.
Declaration
void InitializeObject(object context)
Parameters
context
The context - the owner object.
InitializeValue(CustomPropertyInfo, object)
Initializes the saved value. Invoked when the deserialized value is null. See remarks.
Declaration
object InitializeValue(CustomPropertyInfo customPropertyInfo, object context)
Parameters
customPropertyInfo
The custom property info.
context
The context.
Returns
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
object ProvideValue(CustomPropertyInfo customPropertyInfo, object context)
Parameters
customPropertyInfo
The custom property info.
context
The context - the owner object.
Returns
Returns the value for the specific property.
RestoreValue(CustomPropertyInfo, object, object)
Restores the value for a specific property.
Declaration
void RestoreValue(CustomPropertyInfo customPropertyInfo, object context, object value)
Parameters
customPropertyInfo
The custom property info.
context
The context - the owner object.
value
The saved value for the property.