DependencyPropertyBaseAttribute Class
The base class for the DependencyPropertyAttribute and AttachedPropertyAttribute aspects.
Inheritance
Implements
Namespace: PostSharp.Patterns.Xaml
Assembly: PostSharp.Patterns.Xaml.dll
Syntax
[MulticastAttributeUsage(PersistMetaData = true)]
[LinesOfCodeAvoided(5)]
[AspectRoleDependency]
[AspectRoleDependency]
[AspectRoleDependency]
[Internal(AttributeId = 6350852601680003101L)]
[HasConstraint]
[Serializer]
public abstract class DependencyPropertyBaseAttribute : LocationLevelAspect, ILocationLevelAspect, ILocationLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, IAspectProvider, IAspect, IService, ILocationValidationHandler
Constructors
Name | Description |
---|---|
DependencyPropertyBaseAttribute(PortableFormatterConstructorContext) |
Properties
Name | Description |
---|---|
IsReadOnly | Determines whether the property should be registered as a read-only property. |
PropertyChangedMethod | Gets or sets the name of the method that reacts to the changes of the property value. |
RegistrationProperty | Gets or sets the name of a property or field that exposes the instance of the registered DependencyProperty. |
SupportsRegistrationProperties | |
TargetProperty | Gets the property to which this aspect has been applied. |
ValidateValueMethod | Gets or sets the name of the method that validates the value of the property. |
Methods
Name | Description |
---|---|
CoerceValue(DependencyObject, Object) | |
CompileTimeInitialize(LocationInfo, AspectInfo) | |
GetProperty(Type) | Gets the DependencyPropertyObject associated with this property for a specific instance type. |
GetPropertyName() | |
GetPropertyType() | |
ProvideAspects(Object) | |
RegisterProperty(Type, Type) | Registers the property and gets the DependencyProperty object. |
RuntimeInitialize(LocationInfo) | |
ValidateChangeHandlerSignature(MethodInfo, LocationInfo, String) | |
ValidateValidatorSignature(MethodInfo, LocationInfo, String) | |
ValidateValue(Object) | Checks that a given value is valid for the target property. |
ValueChange(DependencyObject, DependencyPropertyChangedEventArgs) |
Explicit Interface Implementations
Name | Description |
---|---|
ILocationValidationHandler.Register(LocationInfo, LocationContractAttribute) |