wpf-devexpress-dot-mvvm-dot-ui-dot-functionbindingbehavior-cb010b7d.md
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
public string Function { get; set; }
Public Property [Function] As String
| Type | Description |
|---|---|
| String |
The name of a Source‘s function whose result should change the Target‘s Property value.
|
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)));
}
}
Public Class MainViewModel
...
Public Sub Update()
Me.UpdateFunctionBinding(Function(x) x.GetFilteredItems(Nothing, Nothing))
End Sub
End Class
See Also