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