Represents boolean to integer value converter.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Controls
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public class BoolToIntegerConverter : IValueConverter
Inheritance: objectBoolToIntegerConverter
Implements:
Constructors
public BoolToIntegerConverter()
Methods
Modifies the source data before passing it to the target for display in the UI.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The source data being passed to the target.
targetTypeTypeThe Type of data expected by the target dependency property.
parameterobjectAn optional parameter to be used in the converter logic.
cultureCultureInfoThe culture of the conversion.
Returns:The value to be passed to the target dependency property.
Modifies the target data before passing it to the source object. This method is called only in bindings.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The target data being passed to the source.
targetTypeTypeThe Type of data expected by the source object.
parameterobjectAn optional parameter to be used in the converter logic.
cultureCultureInfoThe culture of the conversion.
Returns:The value to be passed to the source object.