Skip to main content

FunctionBindingBehavior.Function Property

Gets or sets the name of a Source‘s function whose result should change the Target‘s Property value. This is a dependency property.

Namespace: DevExpress.Mvvm.UI

Assembly: DevExpress.Xpf.Core.v23.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public string Function { get; set; }

Property Value

Type Description
String

The name of a Source‘s function whose result should change the Target‘s Property value.

Remarks

The FunctionBindingBehavior re-invokes the specified Function when one of its arguments is changed.

You can execute the POCOViewModelExtensions.UpdateFunctionBinding extension method to re-invoke the Function.

The following code sample re-invokes the GetFilteredItems function with the UpdateFunctionBinding method:

public class MainViewModel {
    ...
    public void Update() {
        this.UpdateFunctionBinding(x => x.GetFilteredItems(default(DateTime), default(DateTime)));
    }
}
See Also