Export (0) Print
Expand All

DependencyProperty Methods

The DependencyProperty type exposes the following members.

  NameDescription
Public method AddOwner(Type) Adds another type as an owner of a dependency property that has already been registered.
Public method AddOwner(Type, PropertyMetadata) Adds another type as an owner of a dependency property that has already been registered, providing dependency property metadata for the dependency property as it will exist on the provided owner type.
Public method Equals(Object) 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(DependencyObject) Returns the metadata for this dependency property as it exists on the specified object instance.
Public method GetMetadata(DependencyObjectType) Returns the metadata for this dependency property as it exists on a specified type.
Public method GetMetadata(Type) Returns the metadata for this dependency property as it exists on a specified existing type.
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(Type, PropertyMetadata) Specifies alternate metadata for this dependency property when it is present on instances of a specified type, overriding the metadata that existed for the dependency property as it was inherited from base types.
Public method OverrideMetadata(Type, PropertyMetadata, DependencyPropertyKey) Supplies alternate metadata for a read-only dependency property when it is present on instances of a specified type, overriding the metadata that was provided in the initial dependency property registration. You must pass the DependencyPropertyKey for the read-only dependency property to avoid raising an exception.
Public method Static member Register(String, Type, Type) Registers a dependency property with the specified property name, property type, and owner type.
Public method Static member Register(String, Type, Type, PropertyMetadata) Registers a dependency property with the specified property name, property type, owner type, and property metadata.
Public method Static member Register(String, Type, Type, PropertyMetadata, ValidateValueCallback) Registers a dependency property with the specified property name, property type, owner type, property metadata, and a value validation callback for the property.
Public method Static member RegisterAttached(String, Type, Type) Registers an attached property with the specified property name, property type, and owner type.
Public method Static member RegisterAttached(String, Type, Type, PropertyMetadata) Registers an attached property with the specified property name, property type, owner type, and property metadata.
Public method Static member RegisterAttached(String, Type, Type, PropertyMetadata, ValidateValueCallback) Registers an attached property with the specified property type, owner type, property metadata, and value validation callback for the property.
Public method Static member RegisterAttachedReadOnly(String, Type, Type, PropertyMetadata) Registers a read-only attached property, with the specified property type, owner type, and property metadata.
Public method Static member RegisterAttachedReadOnly(String, Type, Type, PropertyMetadata, ValidateValueCallback) Registers a read-only attached property, with the specified property type, owner type, property metadata, and a validation callback.
Public method Static member RegisterReadOnly(String, Type, Type, PropertyMetadata) Registers a read-only dependency property, with the specified property type, owner type, and property metadata.
Public method Static member RegisterReadOnly(String, Type, Type, PropertyMetadata, ValidateValueCallback) Registers a read-only dependency property, with the specified property type, owner type, property metadata, and a validation callback.
Public method ToString Returns the string representation of the dependency property. (Overrides Object.ToString().)
Top

Community Additions

ADD
Show:
© 2014 Microsoft