ClassRadDependencyProperty
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
Properties
DefaultMetadata
Gets the default metadata for a dependency property.
Declaration
public RadPropertyMetadata DefaultMetadata { get; }
Property Value
IsAttached
Indicates whether a property is an attached property.
Name
Gets the name of the dependency property.
OwnerType
Gets the owner type for the dependency property.
PropertyType
Gets the type of the property associated with the RadDependencyProperty instance.
Methods
GetHashCode()
Returns a hash code for the current instance of the RadDependencyProperty.
Declaration
public override int GetHashCode()
Returns
A 32-bit signed integer that is the hash code for the current instance.
Overrides
Register(string, Type, Type)
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.
Declaration
public static RadDependencyProperty Register(string name, Type propertyType, Type ownerType)
Parameters
name
The name of the dependency property as a string.
propertyType
The type of the property being registered.
ownerType
The type that owns the dependency property.
Returns
A RadDependencyProperty that can be used to access and set the value of the registered property.
Register(string, Type, Type, RadPropertyMetadata)
Registers a dependency property with the specified name, property type, owner type, and metadata.
Declaration
public static RadDependencyProperty Register(string name, Type propertyType, Type ownerType, RadPropertyMetadata defaultMetadata)
Parameters
name
The name of the dependency property.
propertyType
The type of the property being registered.
ownerType
The type that owns the dependency property.
defaultMetadata
The metadata associated with the dependency property.
Returns
A reference to the registered dependency property.
RegisterAttached(string, Type, Type)
Registers an attached dependency property with the specified name, property type, and owner type.
Declaration
public static RadDependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType)
Parameters
name
The name of the attached property to register.
propertyType
The type of the attached property.
ownerType
The type that owns this attached property.
Returns
A RadDependencyProperty that represents the registered attached property.
RegisterAttached(string, Type, Type, RadPropertyMetadata)
Registers an attached dependency property with the specified parameters.
Declaration
public static RadDependencyProperty RegisterAttached(string name, Type propertyType, Type ownerType, RadPropertyMetadata defaultMetadata)
Parameters
name
The name of the dependency property.
propertyType
The type of the property.
ownerType
The type that owns the property.
defaultMetadata
The metadata for the property, which can include default values and property changed callbacks.
Returns
The registered dependency property.
ToString()
Returns a string representation of the current instance of the RadDependencyProperty class.
Declaration
public override string ToString()
Returns
A string that represents the current RadDependencyProperty instance.
Overrides