Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DependencyProperty Members

DependencyProperty Members

Represents a dependency property that is registered with the Windows Presentation Foundation (WPF) property system. Dependency properties provide support for value expressions, property invalidation and dependent-value coercion, default values, inheritance, data binding, animation, property change notification, and styling.

The DependencyProperty type exposes the following members.

Public method AddOwner Overloaded. Adds another type as an owner of a dependency property that has already been registered to a type.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns a hash code for this DependencyProperty. (Overrides Object.GetHashCode().)
Public method GetMetadata Overloaded. Returns the metadata associated with this dependency property as it exists for a particular type. This can be the type where the dependency property was first registered, one to which it was added subsequently, or a type where the dependency property was obtained through inheritance but the metadata was specifically overridden.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method IsValidType Determines whether a specified value is acceptable for this dependency property's type, as checked against the property type provided in the original dependency property registration.
Public method IsValidValue Determines whether the provided value is accepted for the type of property through basic type checking, and also potentially if it is within the allowed range of values for that type.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OverrideMetadata Overloaded. Supplies alternate metadata for this dependency property when it is present on instances of a specified type, versus the metadata that was provided in the initial dependency property registration.
Public method Static member Register Overloaded. Registers a dependency property.
Public method Static member RegisterAttached Overloaded. Registers an attached property with the property system.
Public method Static member RegisterAttachedReadOnly Overloaded. Registers a read-only attached property.
Public method Static member RegisterReadOnly Overloaded. Registers a dependency property as a read-only dependency property.
Public method ToString Returns the string representation of the dependency property. (Overrides Object.ToString().)

Public field Static member UnsetValue Specifies a static value that is used by the WPF property system rather than null to indicate that the property exists, but does not have its value set by the property system.

Public property DefaultMetadata Gets the default metadata of the dependency property.
Public property GlobalIndex Gets an internally generated value that uniquely identifies the dependency property.
Public property Name Gets the name of the dependency property.
Public property OwnerType Gets the type of the object that registered the dependency property with the property system, or added itself as owner of the property.
Public property PropertyType Gets the type that the dependency property uses for its value.
Public property ReadOnly Gets a value that indicates whether the dependency property identified by this DependencyProperty instance is a read-only dependency property.
Public property ValidateValueCallback Gets the value validation callback for the dependency property.

Community Additions

© 2015 Microsoft