IValueConverter
Defines conversions between binding-source values and values displayed or stored by a binding target.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public interface IValueConverter
Methods
Converts a binding-source value to a value suitable for the binding target.
object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The value produced by the binding source.
targetTypeTypeThe type of the binding target property.
parameterobjectConverter-specific configuration.
cultureCultureInfoThe culture to use when converting or formatting the value.
Returns:The converted value for the binding target; if this method returns null, the binding uses the valid null value.
Converts a binding-target value to a value suitable for the binding source.
object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The value produced by the binding target.
targetTypeTypeThe type expected by the binding source.
parameterobjectConverter-specific configuration.
cultureCultureInfoThe culture to use when converting or parsing the value.
Returns:The converted value for the binding source; if this method returns null, the binding uses the valid null value.