RadPropertyMetadata
Represents metadata that describes the characteristics and behavior of a RadProperty.
RadPropertyMetadata provides essential information about how a RadProperty behaves, including its default value, change notification callbacks, and various property options.
This metadata is used by the RadProperty system to:
Determine default values for properties
Handle property change notifications
Control property inheritance and coercion
Manage property validation and type conversion
The metadata is typically specified when registering a RadProperty and cannot be changed after the property is registered.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class RadPropertyMetadata
Inheritance: objectRadPropertyMetadata
Derived Classes:
Constructors
Initializes a new instance of the RadPropertyMetadata class.
public RadPropertyMetadata()
Initializes a new instance of the RadPropertyMetadata class using an object and a property changed callback.
public RadPropertyMetadata(object defaultValue, PropertyChangedCallback propertyChangedCallback)
Initializes a new instance of the RadPropertyMetadata class using the default value of the property.
Initializes a new instance of the RadPropertyMetadata class using a property changed callback.
public RadPropertyMetadata(PropertyChangedCallback propertyChangedCallback)
Properties
public AttachedPropertyUsage AttachedPropertyUsage { get; }
public CoerceValueCallback CoerceValueCallback { get; set; }
Gets or sets the default value of the property.
public object DefaultValue { get; set; }
public bool IsDefaultValueModified { get; }
Gets or sets a value indicating whether the property is inherited.
public bool IsInherited { get; set; }
Gets or sets the PropertyChangedCallback
public PropertyChangedCallback PropertyChangedCallback { get; set; }
Gets a value indicating whether the property is read-only.
public bool ReadOnly { get; }
Methods
protected virtual object CreateDefaultValue(RadObject owner, RadProperty property)
public object GetDefaultValue(RadObject owner, RadProperty property)
public void InvokeMerge(RadPropertyMetadata baseMetadata, RadProperty dp)
protected virtual void Merge(RadPropertyMetadata baseMetadata, RadProperty dp)
protected virtual void OnApply(RadProperty dp, Type targetType)
public void SetAttachedPropertyUsage(AttachedPropertyUsage attachedPropertyUsage)