Defines a naming convention for the DependencyPropertyAttribute aspect, specifying how to derive the registration field name, property changed callback, and validation method from the target property name.
Namespace: Metalama.Patterns.Wpf.Configuration
Assembly: Metalama.Patterns.Wpf.dll
Syntax
[CompileTime]
public sealed record DependencyPropertyNamingConvention : ICompileTimeSerializable, IEquatable<DependencyPropertyNamingConvention>Remarks
Use AddNamingConvention(DependencyPropertyNamingConvention, int?) to register custom naming conventions.
Patterns can use the {PropertyName} placeholder which is replaced with the property name extracted from the target.
Constructors
| Name | Description |
|---|---|
| DependencyPropertyNamingConvention(string) | Initializes a new instance of the DependencyPropertyNamingConvention class with the specified name. |
Properties
| Name | Description |
|---|---|
| IsOnPropertyChangedRequired | Gets or sets a value indicating whether the |
| IsValidateRequired | Gets or sets a value indicating whether the |
| Name | Gets the unique name of this naming convention. |
| OnPropertyChangedPattern | Gets or sets a regular expression pattern used to identify a method invoked after the property has changed.
All occurrences of the substring |
| PropertyNamePattern | Gets or sets the regular expression pattern that will be evaluated against the name of the target property of the DependencyPropertyAttribute aspect.
The expression should yield a match group named |
| RegistrationFieldName | Gets or sets the name of the registration field to be introduced. The substring |
| ValidatePattern | Gets or sets a regular expression used to identify the method called before the property is changed to perform validation.
All occurrences of the substring |
Methods
| Name | Description |
|---|---|
| Equals(DependencyPropertyNamingConvention?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Operators
| Name | Description |
|---|---|
| operator ==(DependencyPropertyNamingConvention?, DependencyPropertyNamingConvention?) | |
| operator !=(DependencyPropertyNamingConvention?, DependencyPropertyNamingConvention?) |