Export (0) Print
Expand All

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)

'Declaration
Public NotInheritable Class DependencyPropertyDescriptor _
	Inherits PropertyDescriptor

The DependencyPropertyDescriptor type exposes the following members.

  NameDescription
Public propertyAttributesGets the collection of attributes for this member. (Overrides MemberDescriptor.Attributes.)
Public propertyCategoryGets the name of the category that the member belongs to, as specified in the CategoryAttribute. (Overrides MemberDescriptor.Category.)
Public propertyComponentTypeGets the type of the component this property is bound to. (Overrides PropertyDescriptor.ComponentType.)
Public propertyConverterGets the type converter for this property. (Overrides PropertyDescriptor.Converter.)
Public propertyDependencyPropertyReturns the dependency property identifier.
Public propertyDescriptionGets the description of the member, as specified in the DescriptionAttribute. (Overrides MemberDescriptor.Description.)
Public propertyDesignerCoerceValueCallbackGets 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 propertyDesignTimeOnlyGets whether this member should be set only at design time, as specified in the DesignOnlyAttribute. (Overrides MemberDescriptor.DesignTimeOnly.)
Public propertyDisplayNameGets the name that can be displayed in a window, such as a Properties window. (Overrides MemberDescriptor.DisplayName.)
Public propertyIsAttachedGets a value that indicates whether the property is registered as an attached property and is being used through an attached usage.
Public propertyIsBrowsableGets a value that indicates the value of the BrowsableAttribute on the property. (Overrides MemberDescriptor.IsBrowsable.)
Public propertyIsLocalizableGets a value indicating whether this property should be localized, as specified in the LocalizableAttribute. (Overrides PropertyDescriptor.IsLocalizable.)
Public propertyIsReadOnlyGets a value indicating whether this property is read-only. (Overrides PropertyDescriptor.IsReadOnly.)
Public propertyMetadataGets the metadata associated with the dependency property.
Public propertyNameGets the name of the member. (Inherited from MemberDescriptor.)
Public propertyPropertyTypeGets the represented Type of the dependency property. (Overrides PropertyDescriptor.PropertyType.)
Public propertySerializationVisibilityGets a value indicating whether this property should be serialized, as specified in the DesignerSerializationVisibilityAttribute. (Inherited from PropertyDescriptor.)
Public propertySupportsChangeEventsIndicates 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.)
Top

  NameDescription
Public methodAddValueChangedEnables other objects to be notified when this property changes. (Overrides PropertyDescriptor.AddValueChanged(Object, EventHandler).)
Public methodCanResetValueReturns whether resetting an object changes its value. (Overrides PropertyDescriptor.CanResetValue(Object).)
Public methodEqualsCompares two DependencyPropertyDescriptor instances for equality. (Overrides PropertyDescriptor.Equals(Object).)
Public methodStatic memberFromName(String, Type, Type)Returns a DependencyPropertyDescriptor for a provided property name.
Public methodStatic memberFromName(String, Type, Type, Boolean)Returns a DependencyPropertyDescriptor for a provided property name.
Public methodStatic memberFromProperty(PropertyDescriptor)Returns a DependencyPropertyDescriptor for a provided PropertyDescriptor.
Public methodStatic memberFromProperty(DependencyProperty, Type)Returns a DependencyPropertyDescriptor for a provided dependency property and target type.
Public methodGetChildPropertiesReturns the default PropertyDescriptorCollection. (Inherited from PropertyDescriptor.)
Public methodGetChildProperties(Attribute())Returns a PropertyDescriptorCollection using a specified array of attributes as a filter. (Inherited from PropertyDescriptor.)
Public methodGetChildProperties(Object)Returns a PropertyDescriptorCollection for a given object. (Inherited from PropertyDescriptor.)
Public methodGetChildProperties(Object, Attribute())Returns a PropertyDescriptorCollection. (Overrides PropertyDescriptor.GetChildProperties(Object, Attribute()).)
Public methodGetEditorGets an editor of the specified type. (Overrides PropertyDescriptor.GetEditor(Type).)
Public methodGetHashCodeReturns the hash code for this DependencyPropertyDescriptor. (Overrides PropertyDescriptor.GetHashCode.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetValueResturns the current value of the property on a component. (Overrides PropertyDescriptor.GetValue(Object).)
Protected methodGetValueChangedHandlerRetrieves the current set of ValueChanged event handlers for a specific component (Inherited from PropertyDescriptor.)
Public methodRemoveValueChangedEnables other objects to be notified when this property changes. (Overrides PropertyDescriptor.RemoveValueChanged(Object, EventHandler).)
Public methodResetValueResets the value for this property of the component to the default value. (Overrides PropertyDescriptor.ResetValue(Object).)
Public methodSetValueSets the value of the component to a different value. (Overrides PropertyDescriptor.SetValue(Object, Object).)
Public methodShouldSerializeValueIndicates whether the value of this property needs to be persisted by serialization processes. (Overrides PropertyDescriptor.ShouldSerializeValue(Object).)
Public methodToStringConverts the value of this instance to its equivalent string representation. (Overrides Object.ToString.)
Top

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

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft