Exposes helper methods that work with the DependencyPropertyAttribute and AttachedPropertyAttribute aspects.
Namespace: PostSharp.Patterns.Xaml
Assembly: PostSharp.Patterns.Xaml.dll
Syntax
public static class DependencyPropertyServicesRemarks
To access the DependencyProperty of a property declared with DependencyPropertyAttribute without a string lookup,
declare a static property or field of type DependencyProperty named after the property with the Property suffix.
The aspect assigns it (see PostSharp.Patterns.Xaml.DependencyPropertyBaseAttribute.RegistrationProperty).
Methods
| Name | Description |
|---|---|
| GetDependencyProperty(Type, string) | Gets the DependencyProperty object associated with a property of a given name for a given type. |
| GetDependencyProperty<T>(Expression<Func<T>>) | Gets the DependencyProperty object associated with a property of a given name for a given type.
The property name and the property owner type are extracted from the |
| GetDependencyProperty<TClass, TProperty>(Expression<Func<TClass, TProperty>>) | Gets the DependencyProperty object associated with a property of a given name for a given type.
The property name and the property owner type are extracted from the |