PostSharpAPI ReferencePost­Sharp.​Patterns.​XamlDependency­Property­Base­AttributeProperty­Changed­Method
Open sandboxFocus

DependencyPropertyBaseAttribute.PropertyChangedMethod Property

PropertyChangedMethod

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

Declaration
public string PropertyChangedMethod
{
    [Internal(AttributeId = 6350852601680003101L)]
    get;
    [Internal(AttributeId = 6350852601680003101L)]
    set;
}
Property Value
Type Description
System.String
Remarks

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.