.NET Framework Class Library
DependencyPropertyDescriptor Class

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

Inheritance Hierarchy

Namespace:   System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)
Public NotInheritable Class DependencyPropertyDescriptor _
	Inherits [%$TOPIC/ms669426_en-us_VS_110_3_0_0_0_0%]
public sealed class DependencyPropertyDescriptor : [%$TOPIC/ms669426_en-us_VS_110_3_0_1_0_0%]
public ref class DependencyPropertyDescriptor sealed : public [%$TOPIC/ms669426_en-us_VS_110_3_0_2_0_0%]
type DependencyPropertyDescriptor =  
        inherit [%$TOPIC/ms669426_en-us_VS_110_3_0_3_0_1%] 
public final class DependencyPropertyDescriptor extends [%$TOPIC/ms669426_en-us_VS_110_3_0_4_0_0%]

The DependencyPropertyDescriptor type exposes the following members.

Public property AttributesGets the collection of attributes for this member. (Overrides MemberDescriptorAttributes.)
Public property CategoryGets the name of the category that the member belongs to, as specified in the CategoryAttribute. (Overrides MemberDescriptorCategory.)
Public property ComponentTypeGets the type of the component this property is bound to. (Overrides PropertyDescriptorComponentType.)
Public property ConverterGets the type converter for this property. (Overrides PropertyDescriptorConverter.)
Public property DependencyPropertyReturns the dependency property identifier.
Public property DescriptionGets the description of the member, as specified in the DescriptionAttribute. (Overrides MemberDescriptorDescription.)
Public property DesignerCoerceValueCallbackGets 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.
Public property DesignTimeOnlyGets whether this member should be set only at design time, as specified in the DesignOnlyAttribute. (Overrides MemberDescriptorDesignTimeOnly.)
Public property DisplayNameGets the name that can be displayed in a window, such as a Properties window. (Overrides MemberDescriptorDisplayName.)
Public property IsAttachedGets a value that indicates whether the property is registered as an attached property and is being used through an attached usage.
Public property IsBrowsableGets a value that indicates the value of the BrowsableAttribute on the property. (Overrides MemberDescriptorIsBrowsable.)
Public property IsLocalizableGets a value indicating whether this property should be localized, as specified in the LocalizableAttribute. (Overrides PropertyDescriptorIsLocalizable.)
Public property IsReadOnlyGets a value indicating whether this property is read-only. (Overrides PropertyDescriptorIsReadOnly.)
Public property MetadataGets the metadata associated with the dependency property.
Public property NameGets the name of the member. (Inherited from MemberDescriptor.)
Public property PropertyTypeGets the represented Type of the dependency property. (Overrides PropertyDescriptorPropertyType.)
Public property SerializationVisibilityGets a value indicating whether this property should be serialized, as specified in the DesignerSerializationVisibilityAttribute. (Inherited from PropertyDescriptor.)
Public property SupportsChangeEventsIndicates 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. (Overrides PropertyDescriptorSupportsChangeEvents.)
Public method AddValueChangedEnables other objects to be notified when this property changes. (Overrides PropertyDescriptorAddValueChanged(Object, EventHandler).)
Public method CanResetValueReturns whether resetting an object changes its value. (Overrides PropertyDescriptorCanResetValue(Object).)
Public method EqualsCompares two DependencyPropertyDescriptor instances for equality. (Overrides PropertyDescriptorEquals(Object).)
Public method Static member FromName(String, Type, Type)Returns a DependencyPropertyDescriptor for a provided property name.
Public method Static member FromName(String, Type, Type, Boolean)Returns a DependencyPropertyDescriptor for a provided property name.
Public method Static member FromProperty(PropertyDescriptor)Returns a DependencyPropertyDescriptor for a provided PropertyDescriptor.
Public method Static member FromProperty(DependencyProperty, Type)Returns a DependencyPropertyDescriptor for a provided dependency property and target type.
Public method GetChildPropertiesReturns the default PropertyDescriptorCollection. (Inherited from PropertyDescriptor.)
Public method GetChildProperties(Attribute)Returns a PropertyDescriptorCollection using a specified array of attributes as a filter. (Inherited from PropertyDescriptor.)
Public method GetChildProperties(Object)Returns a PropertyDescriptorCollection for a given object. (Inherited from PropertyDescriptor.)
Public method GetChildProperties(Object, Attribute)Returns a PropertyDescriptorCollection. (Overrides PropertyDescriptorGetChildProperties(Object, Attribute).)
Public method GetEditorGets an editor of the specified type. (Overrides PropertyDescriptorGetEditor(Type).)
Public method GetHashCodeReturns the hash code for this DependencyPropertyDescriptor. (Overrides PropertyDescriptorGetHashCode.)
Public method GetTypeGets the Type of the current instance. (Inherited from Object.)
Public method GetValueResturns the current value of the property on a component. (Overrides PropertyDescriptorGetValue(Object).)
Protected method GetValueChangedHandlerRetrieves the current set of ValueChanged event handlers for a specific component (Inherited from PropertyDescriptor.)
Public method RemoveValueChangedEnables other objects to be notified when this property changes. (Overrides PropertyDescriptorRemoveValueChanged(Object, EventHandler).)
Public method ResetValueResets the value for this property of the component to the default value. (Overrides PropertyDescriptorResetValue(Object).)
Public method SetValueSets the value of the component to a different value. (Overrides PropertyDescriptorSetValue(Object, Object).)
Public method ShouldSerializeValueIndicates whether the value of this property needs to be persisted by serialization processes. (Overrides PropertyDescriptorShouldSerializeValue(Object).)
Public method ToStringConverts the value of this instance to its equivalent string representation. (Overrides ObjectToString.)

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 DependencyPropertyDescriptorFromProperty(PropertyDescriptor), or DependencyPropertyDescriptorFromName. If either method returns , then the property is not a dependency property. If the method returns a valid DependencyPropertyDescriptor , then the property is a dependency property.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.