Edit

Share via


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
DependencyPropertyDescriptor

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

Gets or sets an array of attributes.

(Inherited from MemberDescriptor)
Attributes

Gets the collection of attributes for this member.

Category

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

ComponentType

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

Converter

Gets the type converter for this property.

ConverterFromRegisteredType

Gets the type converter for this property.

(Inherited from PropertyDescriptor)
DependencyProperty

Returns the dependency property identifier.

Description

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

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

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

DisplayName

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

IsAttached

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

IsBrowsable

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

IsLocalizable

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

IsReadOnly

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

Metadata

Gets the metadata associated with the dependency property.

Name

Gets the name of the member.

(Inherited from MemberDescriptor)
NameHashCode

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

(Inherited from MemberDescriptor)
PropertyType

Gets the represented Type of the dependency property.

SerializationVisibility

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

(Inherited from PropertyDescriptor)
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)

Enables other objects to be notified when this property changes.

CanResetValue(Object)

Returns whether resetting an object changes its value.

CreateAttributeCollection()

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

(Inherited from MemberDescriptor)
CreateInstance(Type)

Creates an instance of the specified type.

(Inherited from PropertyDescriptor)
Equals(Object)

Compares two DependencyPropertyDescriptor instances for equality.

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, Boolean)

Returns a DependencyPropertyDescriptor for a provided property name.

FromName(String, Type, Type)

Returns a DependencyPropertyDescriptor for a provided property name.

FromProperty(DependencyProperty, Type)

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

FromProperty(PropertyDescriptor)

Returns a DependencyPropertyDescriptor for a provided PropertyDescriptor.

GetChildProperties()

Returns the default PropertyDescriptorCollection.

(Inherited from PropertyDescriptor)
GetChildProperties(Attribute[])

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

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

Returns a PropertyDescriptorCollection.

GetChildProperties(Object)

Returns a PropertyDescriptorCollection for a given object.

(Inherited from PropertyDescriptor)
GetEditor(Type)

Gets an editor of the specified type.

GetHashCode()

Returns the hash code for this DependencyPropertyDescriptor.

GetInvocationTarget(Type, Object)

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

(Inherited from PropertyDescriptor)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetTypeFromName(String)

Returns a type using its name.

(Inherited from PropertyDescriptor)
GetValue(Object)

Returns the current value of the property on a component.

GetValueChangedHandler(Object)

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

(Inherited from PropertyDescriptor)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnValueChanged(Object, EventArgs)

Raises the ValueChanged event that you implemented.

(Inherited from PropertyDescriptor)
RemoveValueChanged(Object, EventHandler)

Enables other objects to be notified when this property changes.

ResetValue(Object)

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

SetValue(Object, Object)

Sets the value of the component to a different value.

ShouldSerializeValue(Object)

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

ToString()

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

Applies to