PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​XamlAttached­Property­Attribute
Open sandboxFocus

AttachedPropertyAttribute Class

Custom attribute that, when applied on a static automatic property and of type Attached<T> turns this property into a XAML dependency property of the same name and whose value type is T.

Namespace: PostSharp.Patterns.Xaml
Assembly: PostSharp.Patterns.Xaml.dll
Syntax
[HasConstraint]
[Serializer]
public sealed class AttachedPropertyAttribute : DependencyPropertyBaseAttribute, ILocationLevelAspect, ILocationLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, IAspectProvider, IAspect, IService, ILocationValidationHandler

Constructors

Name Description
AttachedPropertyAttribute() PostSharp.Patterns.Xaml.AttachedPropertyAttribute
AttachedPropertyAttribute(PortableFormatterConstructorContext)

Properties

Name Description
SupportsRegistrationProperties

Methods

Name Description
CompileTimeValidate(LocationInfo)
GetPropertyName()
GetPropertyType()
OnPropertyGet<T>(out T, ILocationBinding)
OnPropertySet<T>(T)
RegisterProperty(Type, Type)
ValidateChangeHandlerSignature(MethodInfo, LocationInfo, String)
ValidateValidatorSignature(MethodInfo, LocationInfo, String)