Class SingleVariableExpressionConverter
Use this IValueConverter instance to convert a value using a formula or expression in XAML.
Inheritance
System.Object
SingleVariableExpressionConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.Windows.Calculate
Assembly: Syncfusion.Calculate.WPF.dll
Syntax
public class SingleVariableExpressionConverter : Object, IValueConverter
Remarks
Note that the formula variable name is set to "a" by default and you can change it through the FormulaVariableName property. You can then refer to the binding source value in the formula as "[a]".
Constructors
SingleVariableExpressionConverter()
Declaration
public SingleVariableExpressionConverter()
Properties
FormulaVariableName
Gets or sets the formula name
Declaration
public string FormulaVariableName { get; set; }
Property Value
Type |
---|
System.String |
Methods
Convert(Object, Type, Object, CultureInfo)
Used to convert the values.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Object values. |
System.Type | targetType | type of the target. |
System.Object | parameter | parameter value. |
System.Globalization.CultureInfo | culture | culture values. |
Returns
Type |
---|
System.Object |
ConvertBack(Object, Type, Object, CultureInfo)
Used to convert back the values.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | object value |
System.Type | targetType | type of target |
System.Object | parameter | parameter value. |
System.Globalization.CultureInfo | culture | culture values |
Returns
Type |
---|
System.Object |
Implements
System.Windows.Data.IValueConverter