DependencyPropertyDescriptor DependencyPropertyDescriptor DependencyPropertyDescriptor DependencyPropertyDescriptor Class

Definition

Provides an extension of PropertyDescriptor that accounts for the additional property characteristics of a dependency property.

public ref class DependencyPropertyDescriptor sealed : System::ComponentModel::PropertyDescriptor
public sealed class DependencyPropertyDescriptor : System.ComponentModel.PropertyDescriptor
type DependencyPropertyDescriptor = class
    inherit PropertyDescriptor
Public NotInheritable Class DependencyPropertyDescriptor
Inherits PropertyDescriptor
Inheritance
DependencyPropertyDescriptorDependencyPropertyDescriptorDependencyPropertyDescriptorDependencyPropertyDescriptor

Remarks

This class is primarily used by designer applications. These applications may need to report the dependency property characteristics through property windows or other tools used for editing property values.

In order to check a specific property to determine whether it has DependencyPropertyDescriptor available to serve as a PropertyDescriptor, call either DependencyPropertyDescriptor.FromProperty(PropertyDescriptor), or DependencyPropertyDescriptor.FromName. If either method returns null, then the property is not a dependency property. If the method returns a valid DependencyPropertyDescriptor , then the property is a dependency property.

Properties

AttributeArray AttributeArray AttributeArray AttributeArray

Gets or sets an array of attributes.

(Inherited from MemberDescriptor)
Attributes Attributes Attributes Attributes

Gets the collection of attributes for this member.

Category Category Category Category

Gets the name of the category that the member belongs to, as specified in the CategoryAttribute.

ComponentType ComponentType ComponentType ComponentType

Gets the type of the component this property is bound to.

Converter Converter Converter Converter

Gets the type converter for this property.

DependencyProperty DependencyProperty DependencyProperty DependencyProperty

Returns the dependency property identifier.

Description Description Description Description

Gets the description of the member, as specified in the DescriptionAttribute.

DesignerCoerceValueCallback DesignerCoerceValueCallback DesignerCoerceValueCallback DesignerCoerceValueCallback

Gets or sets a callback that designers use to modify the effective value of a dependency property before the dependency property value is stored in the dependency property engine.

DesignTimeOnly DesignTimeOnly DesignTimeOnly DesignTimeOnly

Gets whether this member should be set only at design time, as specified in the DesignOnlyAttribute.

DisplayName DisplayName DisplayName DisplayName

Gets the name that can be displayed in a window, such as a Properties window.

IsAttached IsAttached IsAttached IsAttached

Gets a value that indicates whether the property is registered as an attached property and is being used through an attached usage.

IsBrowsable IsBrowsable IsBrowsable IsBrowsable

Gets a value that indicates the value of the BrowsableAttribute on the property.

IsLocalizable IsLocalizable IsLocalizable IsLocalizable

Gets a value indicating whether this property should be localized, as specified in the LocalizableAttribute.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

Gets a value indicating whether this property is read-only.

Metadata Metadata Metadata Metadata

Gets the metadata associated with the dependency property.

Name Name Name Name

Gets the name of the member.

(Inherited from MemberDescriptor)
NameHashCode NameHashCode NameHashCode NameHashCode

Gets the hash code for the name of the member, as specified in GetHashCode().

(Inherited from MemberDescriptor)
PropertyType PropertyType PropertyType PropertyType

Gets the represented Type of the dependency property.

SerializationVisibility SerializationVisibility SerializationVisibility SerializationVisibility

Gets a value indicating whether this property should be serialized, as specified in the DesignerSerializationVisibilityAttribute.

(Inherited from PropertyDescriptor)
SupportsChangeEvents SupportsChangeEvents SupportsChangeEvents SupportsChangeEvents

Indicates whether value change notifications for this property may originate from outside the property descriptor, such as from the component itself, or whether notifications will only originate from direct calls made to SetValue(Object, Object).

Methods

AddValueChanged(Object, EventHandler) AddValueChanged(Object, EventHandler) AddValueChanged(Object, EventHandler) AddValueChanged(Object, EventHandler)

Enables other objects to be notified when this property changes.

CanResetValue(Object) CanResetValue(Object) CanResetValue(Object) CanResetValue(Object)

Returns whether resetting an object changes its value.

CreateAttributeCollection() CreateAttributeCollection() CreateAttributeCollection() CreateAttributeCollection()

Creates a collection of attributes using the array of attributes passed to the constructor.

(Inherited from MemberDescriptor)
CreateInstance(Type) CreateInstance(Type) CreateInstance(Type) CreateInstance(Type)

Creates an instance of the specified type.

(Inherited from PropertyDescriptor)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Compares two DependencyPropertyDescriptor instances for equality.

FillAttributes(IList) FillAttributes(IList) FillAttributes(IList) FillAttributes(IList)

Adds the attributes of the PropertyDescriptor to the specified list of attributes in the parent class.

(Inherited from PropertyDescriptor)
FromName(String, Type, Type) FromName(String, Type, Type) FromName(String, Type, Type) FromName(String, Type, Type)

Returns a DependencyPropertyDescriptor for a provided property name.

FromName(String, Type, Type, Boolean) FromName(String, Type, Type, Boolean) FromName(String, Type, Type, Boolean) FromName(String, Type, Type, Boolean)

Returns a DependencyPropertyDescriptor for a provided property name.

FromProperty(DependencyProperty, Type) FromProperty(DependencyProperty, Type) FromProperty(DependencyProperty, Type) FromProperty(DependencyProperty, Type)

Returns a DependencyPropertyDescriptor for a provided dependency property and target type.

FromProperty(PropertyDescriptor) FromProperty(PropertyDescriptor) FromProperty(PropertyDescriptor) FromProperty(PropertyDescriptor)

Returns a DependencyPropertyDescriptor for a provided PropertyDescriptor.

GetChildProperties() GetChildProperties() GetChildProperties() GetChildProperties()

Returns the default PropertyDescriptorCollection.

(Inherited from PropertyDescriptor)
GetChildProperties(Attribute[]) GetChildProperties(Attribute[]) GetChildProperties(Attribute[]) GetChildProperties(Attribute[])

Returns a PropertyDescriptorCollection using a specified array of attributes as a filter.

(Inherited from PropertyDescriptor)
GetChildProperties(Object) GetChildProperties(Object) GetChildProperties(Object) GetChildProperties(Object)

Returns a PropertyDescriptorCollection for a given object.

(Inherited from PropertyDescriptor)
GetChildProperties(Object, Attribute[]) GetChildProperties(Object, Attribute[]) GetChildProperties(Object, Attribute[]) GetChildProperties(Object, Attribute[])

Returns a PropertyDescriptorCollection.

GetEditor(Type) GetEditor(Type) GetEditor(Type) GetEditor(Type)

Gets an editor of the specified type.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code for this DependencyPropertyDescriptor.

GetInvocationTarget(Type, Object) GetInvocationTarget(Type, Object) GetInvocationTarget(Type, Object) GetInvocationTarget(Type, Object)

This method returns the object that should be used during invocation of members.

(Inherited from PropertyDescriptor)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetTypeFromName(String) GetTypeFromName(String) GetTypeFromName(String) GetTypeFromName(String)

Returns a type using its name.

(Inherited from PropertyDescriptor)
GetValue(Object) GetValue(Object) GetValue(Object) GetValue(Object)

Resturns the current value of the property on a component.

GetValueChangedHandler(Object) GetValueChangedHandler(Object) GetValueChangedHandler(Object) GetValueChangedHandler(Object)

Retrieves the current set of ValueChanged event handlers for a specific component

(Inherited from PropertyDescriptor)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnValueChanged(Object, EventArgs) OnValueChanged(Object, EventArgs) OnValueChanged(Object, EventArgs) OnValueChanged(Object, EventArgs)

Raises the ValueChanged event that you implemented.

(Inherited from PropertyDescriptor)
RemoveValueChanged(Object, EventHandler) RemoveValueChanged(Object, EventHandler) RemoveValueChanged(Object, EventHandler) RemoveValueChanged(Object, EventHandler)

Enables other objects to be notified when this property changes.

ResetValue(Object) ResetValue(Object) ResetValue(Object) ResetValue(Object)

Resets the value for this property of the component to the default value.

SetValue(Object, Object) SetValue(Object, Object) SetValue(Object, Object) SetValue(Object, Object)

Sets the value of the component to a different value.

ShouldSerializeValue(Object) ShouldSerializeValue(Object) ShouldSerializeValue(Object) ShouldSerializeValue(Object)

Indicates whether the value of this property needs to be persisted by serialization processes.

ToString() ToString() ToString() ToString()

Converts the value of this instance to its equivalent string representation.

Applies to