Defines the allowlist of global and receiver functions that can be called from an expression.
Only functions registered in this registry can be called. Use CreateWithBuiltInFunctions() to include WPF built-ins, or CreateEmpty() to start without any functions. Methods declared by object, generic methods, and methods with by-reference or pointer parameters are not supported. Register custom functions before parsing.
Definition
Namespace:Telerik.Expressions
Assembly:Telerik.Windows.Data.dll
Syntax:
public sealed class ExpressionFunctionRegistry
Inheritance: objectExpressionFunctionRegistry
Methods
Registers a public instance method on an ExpressionFunctionContext type as a global expression function.
Registers a public instance method on a receiver type as an expression function.
Registers or replaces a global expression function for the specified context type and signature.
Registers or replaces a receiver expression function for the specified type and signature.
Creates an empty registry with no registered custom functions.
public static ExpressionFunctionRegistry CreateEmpty()
A new empty function registry.
Creates a registry seeded with WPF's built-in expression functions.
public static ExpressionFunctionRegistry CreateWithBuiltInFunctions()
A new registry containing the WPF built-in expression functions.