Provides the context for custom functions in the ExpressionParser.
Definition
Namespace:Telerik.Expressions
Assembly:Telerik.Windows.Data.dll
Syntax:
public class ExpressionFunctionContext
Inheritance: objectExpressionFunctionContext
Constructors
Initializes a context with the specified allowlist of custom expression functions.
public ExpressionFunctionContext(ExpressionFunctionRegistry functionRegistry)
The registry used to resolve custom expression functions.
Exceptions: ArgumentNullExceptionfunctionRegistry is null.
Only explicitly registered custom functions can be called. Methods added to a derived context must be registered before expressions are parsed. Use CreateWithBuiltInFunctions() to retain WPF's built-in expression functions.
Properties
Gets or sets the default expression context used for registered global expression functions.
public static ExpressionFunctionContext Context { get; set; }
Custom functions must be registered through FunctionRegistry before they can be used.
Gets the registry used to explicitly register custom global and receiver expression functions.
public ExpressionFunctionRegistry FunctionRegistry { get; }