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)

System::Object
  System.ComponentModel::MemberDescriptor
    System.ComponentModel::PropertyDescriptor
      System.ComponentModel::DependencyPropertyDescriptor

public ref class DependencyPropertyDescriptor sealed : PropertyDescriptor

NameDescription
System_CAPS_pubpropertyAttributes

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

System_CAPS_pubpropertyCategory

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

System_CAPS_pubpropertyComponentType

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

System_CAPS_pubpropertyConverter

Gets the type converter for this property.(Overrides PropertyDescriptor::Converter.)

System_CAPS_pubpropertyDependencyProperty

Returns the dependency property identifier.

System_CAPS_pubpropertyDescription

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

System_CAPS_pubpropertyDesignerCoerceValueCallback

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_pubpropertyDesignTimeOnly

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

System_CAPS_pubpropertyDisplayName

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

System_CAPS_pubpropertyIsAttached

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

System_CAPS_pubpropertyIsBrowsable

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

System_CAPS_pubpropertyIsLocalizable

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

System_CAPS_pubpropertyIsReadOnly

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

System_CAPS_pubpropertyMetadata

Gets the metadata associated with the dependency property.

System_CAPS_pubpropertyName

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

System_CAPS_pubpropertyPropertyType

Gets the represented Type of the dependency property.(Overrides PropertyDescriptor::PropertyType.)

System_CAPS_pubpropertySerializationVisibility

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

System_CAPS_pubpropertySupportsChangeEvents

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

NameDescription
System_CAPS_pubmethodAddValueChanged(Object^, EventHandler^)

Enables other objects to be notified when this property changes. (Overrides PropertyDescriptor::AddValueChanged(Object^, EventHandler^).)

System_CAPS_pubmethodCanResetValue(Object^)

Returns whether resetting an object changes its value.(Overrides PropertyDescriptor::CanResetValue(Object^).)

System_CAPS_pubmethodEquals(Object^)

Compares two DependencyPropertyDescriptor instances for equality.(Overrides PropertyDescriptor::Equals(Object^).)

System_CAPS_pubmethodSystem_CAPS_staticFromName(String^, Type^, Type^)

Returns a DependencyPropertyDescriptor for a provided property name.

System_CAPS_pubmethodSystem_CAPS_staticFromName(String^, Type^, Type^, Boolean)

Returns a DependencyPropertyDescriptor for a provided property name.

System_CAPS_pubmethodSystem_CAPS_staticFromProperty(DependencyProperty^, Type^)

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

System_CAPS_pubmethodSystem_CAPS_staticFromProperty(PropertyDescriptor^)

Returns a DependencyPropertyDescriptor for a provided PropertyDescriptor.

System_CAPS_pubmethodGetChildProperties()

Returns the default PropertyDescriptorCollection.(Inherited from PropertyDescriptor.)

System_CAPS_pubmethodGetChildProperties(array<Attribute^>^)

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

System_CAPS_pubmethodGetChildProperties(Object^)

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

System_CAPS_pubmethodGetChildProperties(Object^, array<Attribute^>^)
System_CAPS_pubmethodGetEditor(Type^)

Gets an editor of the specified type.(Overrides PropertyDescriptor::GetEditor(Type^).)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this DependencyPropertyDescriptor.(Overrides PropertyDescriptor::GetHashCode().)

System_CAPS_pubmethodGetType()

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

System_CAPS_pubmethodGetValue(Object^)

Resturns the current value of the property on a component.(Overrides PropertyDescriptor::GetValue(Object^).)

System_CAPS_protmethodGetValueChangedHandler(Object^)

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

System_CAPS_pubmethodRemoveValueChanged(Object^, EventHandler^)

Enables other objects to be notified when this property changes.(Overrides PropertyDescriptor::RemoveValueChanged(Object^, EventHandler^).)

System_CAPS_pubmethodResetValue(Object^)

Resets the value for this property of the component to the default value.(Overrides PropertyDescriptor::ResetValue(Object^).)

System_CAPS_pubmethodSetValue(Object^, Object^)

Sets the value of the component to a different value.(Overrides PropertyDescriptor::SetValue(Object^, Object^).)

System_CAPS_pubmethodShouldSerializeValue(Object^)

Indicates whether the value of this property needs to be persisted by serialization processes.(Overrides PropertyDescriptor::ShouldSerializeValue(Object^).)

System_CAPS_pubmethodToString()

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 null, then the property is not a dependency property. If the method returns a valid DependencyPropertyDescriptor , then the property is a dependency property.

.NET Framework
Available since 3.0

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
Show: