Back to Devexpress

FunctionBindingBehavior.Function Property

wpf-devexpress-dot-mvvm-dot-ui-dot-functionbindingbehavior-cb010b7d.md

latest2.3 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public string Function { get; set; }
vb
Public Property [Function] As String

Property Value

TypeDescription
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:

csharp
public class MainViewModel {
    ...
    public void Update() {
        this.UpdateFunctionBinding(x => x.GetFilteredItems(default(DateTime), default(DateTime)));
    }
}
vb
Public Class MainViewModel
    ...
    Public Sub Update()
        Me.UpdateFunctionBinding(Function(x) x.GetFilteredItems(Nothing, Nothing))
    End Sub
End Class

See Also

FunctionBindingBehavior Class

FunctionBindingBehavior Members

DevExpress.Mvvm.UI Namespace