DependencyPropertyAttribute Class
Implements
Namespace: Metalama.Patterns.Wpf
Assembly: Metalama.Patterns.Wpf.dll
Syntax
[AttributeUsage(AttributeTargets.Property)]
public sealed class DependencyPropertyAttribute : Attribute, IAspect<IProperty>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<IProperty>, IHierarchicalOptionsProvider
Constructors
Name | Description |
---|---|
DependencyPropertyAttribute() |
Properties
Name | Description |
---|---|
InitializerProvidesDefaultValue | Gets or sets a value indicating whether the property initializer (if present) should be used to for DefaultValue. The default is true. |
IsReadOnly | Gets or sets a value indicating whether the property should be registered as a read-only property. |
PropertyChangedMethod | Gets or sets the name of the method that will be called when the the property value has changed. |
RegistrationField | Gets or sets the name of the static readonly field that will be generated to expose the instance of the registered DependencyProperty. |
ValidateMethod | Gets or sets the name of the method that validates the value of the property. |