Skip to main content

BindablePropertyAttribute.OnPropertyChangingMethodName Property

Gets or sets the name of the function that is invoked when the property is being changed.

Namespace: DevExpress.Mvvm.DataAnnotations

Assembly: DevExpress.Mvvm.v24.1.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

public string OnPropertyChangingMethodName { get; set; }

Property Value

Type Description
String

A String value that specifies the name of the function.

Remarks

See the example below:

public class DataViewModel {
        [BindableProperty(OnPropertyChangingMethodName = "Update")]
        public virtual string BindableProperty { get; set; }
        protected void Update() {
            //... 
        }
    }
See Also