DependencyPropertyDescriptor Class
Provides an extension of PropertyDescriptor that accounts for the additional property characteristics of a dependency property.
System.ComponentModel::MemberDescriptor
System.ComponentModel::PropertyDescriptor
System.ComponentModel::DependencyPropertyDescriptor
Assembly: WindowsBase (in WindowsBase.dll)
The DependencyPropertyDescriptor type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AttributeArray | Gets or sets an array of attributes. (Inherited from MemberDescriptor.) |
![]() | Attributes | Gets the collection of attributes for this member. (Overrides MemberDescriptor::Attributes.) |
![]() | Category | Gets the name of the category that the member belongs to, as specified in the CategoryAttribute. (Overrides MemberDescriptor::Category.) |
![]() | ComponentType | Gets the type of the component this property is bound to. (Overrides PropertyDescriptor::ComponentType.) |
![]() | Converter | Gets the type converter for this property. (Overrides PropertyDescriptor::Converter.) |
![]() | DependencyProperty | Returns the dependency property identifier. |
![]() | Description | Gets the description of the member, as specified in the DescriptionAttribute. (Overrides MemberDescriptor::Description.) |
![]() | 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. (Overrides MemberDescriptor::DesignTimeOnly.) |
![]() | DisplayName | Gets the name that can be displayed in a window, such as a Properties window. (Overrides MemberDescriptor::DisplayName.) |
![]() | 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. (Overrides MemberDescriptor::IsBrowsable.) |
![]() | IsLocalizable | Gets a value indicating whether this property should be localized, as specified in the LocalizableAttribute. (Overrides PropertyDescriptor::IsLocalizable.) |
![]() | IsReadOnly | Gets a value indicating whether this property is read-only. (Overrides PropertyDescriptor::IsReadOnly.) |
![]() | 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. (Overrides PropertyDescriptor::PropertyType.) |
![]() | 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. (Overrides PropertyDescriptor::SupportsChangeEvents.) |
| Name | Description | |
|---|---|---|
![]() | AddValueChanged | Enables other objects to be notified when this property changes. (Overrides PropertyDescriptor::AddValueChanged(Object, EventHandler).) |
![]() | CanResetValue | Returns whether resetting an object changes its value. (Overrides PropertyDescriptor::CanResetValue(Object).) |
![]() | CreateAttributeCollection | Creates a collection of attributes using the array of attributes passed to the constructor. (Inherited from MemberDescriptor.) |
![]() | CreateInstance | Creates an instance of the specified type. (Inherited from PropertyDescriptor.) |
![]() | Equals | Compares two DependencyPropertyDescriptor instances for equality. (Overrides PropertyDescriptor::Equals(Object).) |
![]() | FillAttributes | Adds the attributes of the PropertyDescriptor to the specified list of attributes in the parent class. (Inherited from PropertyDescriptor.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | FromName(String, Type, Type) | Returns a DependencyPropertyDescriptor for a provided property name. |
![]() ![]() | FromName(String, Type, Type, Boolean) | Returns a DependencyPropertyDescriptor for a provided property name. |
![]() ![]() | FromProperty(PropertyDescriptor) | Returns a DependencyPropertyDescriptor for a provided PropertyDescriptor. |
![]() ![]() | FromProperty(DependencyProperty, Type) | Returns a DependencyPropertyDescriptor for a provided dependency property and target type. |
![]() | GetChildProperties() | Returns the default PropertyDescriptorCollection. (Inherited from PropertyDescriptor.) |
![]() | GetChildProperties(array<Attribute>) | Returns a PropertyDescriptorCollection using a specified array of attributes as a filter. (Inherited from PropertyDescriptor.) |
![]() | GetChildProperties(Object) | Returns a PropertyDescriptorCollection for a given object. (Inherited from PropertyDescriptor.) |
![]() | GetChildProperties(Object, array<Attribute>) | Returns a PropertyDescriptorCollection. (Overrides PropertyDescriptor::GetChildProperties(Object, array<Attribute>).) |
![]() | GetEditor | Gets an editor of the specified type. (Overrides PropertyDescriptor::GetEditor(Type).) |
![]() | GetHashCode | Returns the hash code for this DependencyPropertyDescriptor. (Overrides PropertyDescriptor::GetHashCode().) |
![]() | GetInvocationTarget | 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 | Returns a type using its name. (Inherited from PropertyDescriptor.) |
![]() | GetValue | Resturns the current value of the property on a component. (Overrides PropertyDescriptor::GetValue(Object).) |
![]() | GetValueChangedHandler | 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 | Raises the ValueChanged event that you implemented. (Inherited from PropertyDescriptor.) |
![]() | RemoveValueChanged | Enables other objects to be notified when this property changes. (Overrides PropertyDescriptor::RemoveValueChanged(Object, EventHandler).) |
![]() | ResetValue | Resets the value for this property of the component to the default value. (Overrides PropertyDescriptor::ResetValue(Object).) |
![]() | SetValue | Sets the value of the component to a different value. (Overrides PropertyDescriptor::SetValue(Object, Object).) |
![]() | ShouldSerializeValue | Indicates whether the value of this property needs to be persisted by serialization processes. (Overrides PropertyDescriptor::ShouldSerializeValue(Object).) |
![]() | ToString | Converts the value of this instance to its equivalent string representation. (Overrides Object::ToString().) |
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 nullptr, then the property is not a dependency property. If the method returns a valid DependencyPropertyDescriptor , then the property is a dependency property.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
