DependencyPropertyDescriptor Class
 

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

Namespace:   System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

Inheritance Hierarchy
SystemObject
   System.ComponentModelMemberDescriptor
     System.ComponentModelPropertyDescriptor
      System.ComponentModelDependencyPropertyDescriptor

Syntax
public sealed class DependencyPropertyDescriptor : PropertyDescriptor
public ref class DependencyPropertyDescriptor sealed : PropertyDescriptor
[<Sealed>]
type DependencyPropertyDescriptor = 
    class
        inherit PropertyDescriptor
    end
Public NotInheritable Class DependencyPropertyDescriptor
	Inherits PropertyDescriptor
Properties
NameDescription
System_CAPS_pubproperty

Gets the collection of attributes for this member.(Overrides .)

System_CAPS_pubproperty

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

System_CAPS_pubproperty

Gets the type of the component this property is bound to.(Overrides .)

System_CAPS_pubproperty

Gets the type converter for this property.(Overrides .)

System_CAPS_pubproperty

Returns the dependency property identifier.

System_CAPS_pubproperty

Gets the description of the member, as specified in the DescriptionAttribute.(Overrides .)

System_CAPS_pubproperty

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.

System_CAPS_pubproperty

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

System_CAPS_pubproperty

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

System_CAPS_pubproperty

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

System_CAPS_pubproperty

Gets a value that indicates the value of the BrowsableAttribute on the property.(Overrides .)

System_CAPS_pubproperty

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

System_CAPS_pubproperty

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

System_CAPS_pubproperty

Gets the metadata associated with the dependency property.

System_CAPS_pubproperty

Gets the name of the member.(Inherited from MemberDescriptor.)

System_CAPS_pubproperty

Gets the represented Type of the dependency property.(Overrides .)

System_CAPS_pubproperty

Gets a value indicating whether this property should be serialized, as specified in the DesignerSerializationVisibilityAttribute.(Inherited from PropertyDescriptor.)

System_CAPS_pubproperty

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. (Overrides .)

Methods
NameDescription
System_CAPS_pubmethod AddValueChanged

Enables other objects to be notified when this property changes. (Overrides PropertyDescriptorAddValueChanged.)

System_CAPS_pubmethod CanResetValue

Returns whether resetting an object changes its value.(Overrides PropertyDescriptorCanResetValue.)

System_CAPS_pubmethod Equals

Compares two DependencyPropertyDescriptor instances for equality.(Overrides PropertyDescriptorEquals.)

System_CAPS_pubmethod System_CAPS_static FromName

Returns a DependencyPropertyDescriptor for a provided property name.

System_CAPS_pubmethod System_CAPS_static FromName

Returns a DependencyPropertyDescriptor for a provided property name.

System_CAPS_pubmethod System_CAPS_static FromProperty

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

System_CAPS_pubmethod System_CAPS_static FromProperty

Returns a DependencyPropertyDescriptor for a provided PropertyDescriptor.

System_CAPS_pubmethod GetChildProperties

Returns the default PropertyDescriptorCollection.(Inherited from PropertyDescriptor.)

System_CAPS_pubmethod GetChildProperties

Returns a PropertyDescriptorCollection using a specified array of attributes as a filter.(Inherited from PropertyDescriptor.)

System_CAPS_pubmethod GetChildProperties

Returns a PropertyDescriptorCollection for a given object.(Inherited from PropertyDescriptor.)

System_CAPS_pubmethod GetChildProperties
System_CAPS_pubmethod GetEditor

Gets an editor of the specified type.(Overrides PropertyDescriptorGetEditor.)

System_CAPS_pubmethod GetHashCode

Returns the hash code for this DependencyPropertyDescriptor.(Overrides PropertyDescriptorGetHashCode.)

System_CAPS_pubmethod GetType

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethod GetValue

Resturns the current value of the property on a component.(Overrides PropertyDescriptorGetValue.)

System_CAPS_protmethod GetValueChangedHandler

Retrieves the current set of ValueChanged event handlers for a specific component(Inherited from PropertyDescriptor.)

System_CAPS_pubmethod RemoveValueChanged

Enables other objects to be notified when this property changes.(Overrides PropertyDescriptorRemoveValueChanged.)

System_CAPS_pubmethod ResetValue

Resets the value for this property of the component to the default value.(Overrides PropertyDescriptorResetValue.)

System_CAPS_pubmethod SetValue

Sets the value of the component to a different value.(Overrides PropertyDescriptorSetValue.)

System_CAPS_pubmethod ShouldSerializeValue

Indicates whether the value of this property needs to be persisted by serialization processes.(Overrides PropertyDescriptorShouldSerializeValue.)

System_CAPS_pubmethod ToString

Converts the value of this instance to its equivalent string representation.(Overrides ObjectToString.)

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 DependencyPropertyDescriptorFromProperty, or DependencyPropertyDescriptorFromName. 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.

Version Information
.NET Framework
Available since 3.0
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.

Return to top