PostSharpAPI ReferencePost­Sharp.​Patterns.​XamlDependency­Property­Attribute
Open sandboxFocus

Class DependencyPropertyAttribute

Custom attribute that, when applied on an automatic property, turns this property into a XAML dependency property of the same name.

Namespace: PostSharp.Patterns.Xaml
Assembly: PostSharp.Patterns.Xaml.dll
Syntax
[MulticastAttributeUsage(PersistMetaData = true)]
[HasConstraint]
[Serializer]
public sealed class DependencyPropertyAttribute : DependencyPropertyBaseAttribute, ILocationLevelAspect, ILocationLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, IAspectProvider, IAspect, IService, ILocationValidationHandler

Constructors

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

Properties

Name Description
DefaultValue

Gets or sets the initial value of the dependency property and the DefaultValue property of the dependency property metadata. If you set this property, do not use a property initializer.

SupportsRegistrationProperties

Methods

Name Description
CompileTimeValidate(LocationInfo)
GetPropertyName()
GetPropertyType()
OnPropertyGet<T>(Object, out T)
OnPropertyInitialized(LocationInitializationArgs)
OnPropertySet<T>(Object, ref T)
RegisterProperty(Type, Type)