C# Class Catel.MVVM.Converters.ValueConverterGroup

Inheritance: IValueConverter
显示文件 Open project: Catel/Catel

Public Methods

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

Converts a value.

ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Converts a value.

ValueConverterGroup ( ) : System

Initializes a new instance of the ValueConverterGroup class.

Protected Methods

Method Description
GetTargetType ( int converterIndex, Type finalTargetType, bool convert ) : Type

Returns the target type for a conversion operation.

Private Methods

Method Description
OnConvertersCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Called when [converters collection changed].

Method Details

Convert() public method

Converts a value.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value produced by the binding source.
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 value.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value that is produced by the binding target.
targetType System.Type The type to convert to.
parameter object The converter parameter to use.
culture System.Globalization.CultureInfo The culture to use in the converter.
return object

GetTargetType() protected method

Returns the target type for a conversion operation.
protected GetTargetType ( int converterIndex, Type finalTargetType, bool convert ) : Type
converterIndex int The index of the current converter about to be executed.
finalTargetType System.Type The 'targetType' argument passed into the conversion method.
convert bool Pass true if calling from the Convert method, or false if calling from ConvertBack.
return System.Type

ValueConverterGroup() public method

Initializes a new instance of the ValueConverterGroup class.
public ValueConverterGroup ( ) : System
return System