PostSharp5.0//API Reference/Post­Sharp.​Patterns.​Xaml Namespace/Dependency­Property­Base­Attribute Class/Dependency­Property­Base­Attribute Properties/Dependency­Property­Base­Attribute.​Property­Changed­Method Property

DependencyPropertyBaseAttribute.PropertyChangedMethod Property

Gets or sets the name of the method that reacts to the changes of the property value.

Namespace:  PostSharp.Patterns.Xaml
Assembly:  PostSharp.Patterns.Xaml (in PostSharp.Patterns.Xaml.dll) Version: (
public string PropertyChangedMethod { get; set; }

Property Value

Type: String

The OnPropertyChanged method must be declared in the same class as the corresponding property. The method must have zero parameter and must have a void return type.

If this property is not set then the default OnFooChanged value is used, where Foo is the name of the dependency property.

See Also