C# Class ComponentFactory.Quicksilver.Binding.EvalBindingConverter

Evalutes the expression using the provided set of source binding values.
Inheritance: IMultiValueConverter
Show file Open project: ComponentFactory/Quicksilver

Public Methods

Method Description
Convert ( object values, Type targetType, object parameter, CultureInfo culture ) : object

Converts source values to a value for the binding target.

ConvertBack ( object value, Type targetTypes, object parameter, CultureInfo culture ) : object[]

Converts a binding target value to the source binding values.

EvalBindingConverter ( string expression, System.Language language, FrameworkElement target ) : System

Initialise a new instance of the EvalBindingConverter class.

Protected Methods

Method Description
OnResolveIdentifier ( object sender, ResolveIdentifierEventArgs e ) : void

Occurs when the contained eval needs to resolve an unknown identifier.

Private Methods

Method Description
ConvertUsingConverter ( EvalResult ret, Type targetType ) : object

Method Details

Convert() public method

Converts source values to a value for the binding target.
public Convert ( object values, Type targetType, object parameter, CultureInfo culture ) : object
values object The array of values that the source bindings produces.
targetType System.Type The type of the binding target property.
parameter object The converter parameter to use.
culture System.Globalization.CultureInfo The culture to use in the converter.
return object

ConvertBack() public method

Converts a binding target value to the source binding values.
public ConvertBack ( object value, Type targetTypes, object parameter, CultureInfo culture ) : object[]
value object The value that the binding target produces.
targetTypes System.Type The array of types to convert to.
parameter object The converter parameter to use.
culture System.Globalization.CultureInfo The culture to use in the converter.
return object[]

EvalBindingConverter() public method

Initialise a new instance of the EvalBindingConverter class.
public EvalBindingConverter ( string expression, System.Language language, FrameworkElement target ) : System
expression string Immutable expression to evaluate.
language System.Language Language used to parse and the expression.
target System.Windows.FrameworkElement Framework element that is target of conversion result.
return System

OnResolveIdentifier() protected method

Occurs when the contained eval needs to resolve an unknown identifier.
protected OnResolveIdentifier ( object sender, ResolveIdentifierEventArgs e ) : void
sender object Source of event.
e ResolveIdentifierEventArgs An ResolveIdentifierEventArgs containing the event data.
return void