Interface ICustomPropertyProvider
Represents the custom property provider.
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
CustomPropertyInfo[]
|
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
System.Object
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
customPropertyInfo
The custom property info. |
System.Object
context
The context. |
Returns
System.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
object ProvideValue(CustomPropertyInfo customPropertyInfo, object context)
Parameters
CustomPropertyInfo
customPropertyInfo
The custom property info. |
System.Object
context
The context - the owner object. |
Returns
System.Object
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
customPropertyInfo
The custom property info. |
System.Object
context
The context - the owner object. |
System.Object
value
The saved value for the property. |