Represents a dependency property, enabling property value inheritance, styling, and data binding.
Definition
Namespace:Telerik.Windows.Base
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public sealed class RadDependencyProperty
Inheritance: objectRadDependencyProperty
Fields
public static readonly object UnsetValue
Properties
Gets the default metadata for a dependency property.
public RadPropertyMetadata DefaultMetadata { get; }
Indicates whether a property is an attached property.
public bool IsAttached { get; }
Gets the type of the property associated with the RadDependencyProperty instance.
public Type PropertyType { get; }
Methods
Returns a hash code for the current instance of the RadDependencyProperty.
public override int GetHashCode()
A 32-bit signed integer that is the hash code for the current instance.
Overrides:
Registers a dependency property with the specified name, property type, owner type, and metadata.
public static RadDependencyProperty Register(string name, Type propertyType, Type ownerType, RadPropertyMetadata defaultMetadata)
The name of the dependency property.
propertyTypeTypeThe type of the property being registered.
ownerTypeTypeThe type that owns the dependency property.
defaultMetadataRadPropertyMetadataThe metadata associated with the dependency property.
Returns:A reference to the registered dependency property.
Registers a dependency property in the specified owner type. This method allows you to create a property that supports data binding, animation, and default values.
public static RadDependencyProperty Register(string name, Type propertyType, Type ownerType)
The name of the dependency property as a string.
propertyTypeTypeThe type of the property being registered.
ownerTypeTypeThe type that owns the dependency property.
Returns:A RadDependencyProperty that can be used to access and set the value of the registered property.
Registers an attached dependency property with the specified parameters.
public static RadDependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, RadPropertyMetadata defaultMetadata)
The name of the dependency property.
propertyTypeTypeThe type of the property.
ownerTypeTypeThe type that owns the property.
defaultMetadataRadPropertyMetadataThe metadata for the property, which can include default values and property changed callbacks.
Returns:The registered dependency property.
Registers an attached dependency property with the specified name, property type, and owner type.
public static RadDependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType)
The name of the attached property to register.
propertyTypeTypeThe type of the attached property.
ownerTypeTypeThe type that owns this attached property.
Returns:A RadDependencyProperty that represents the registered attached property.
Returns a string representation of the current instance of the RadDependencyProperty class.
public override string ToString()
A string that represents the current RadDependencyProperty instance.
Overrides: