Represents an IValueConverter that converts Color values or color name strings to RadSolidColorBrush instances.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class ColorToRadBrushConverter : IValueConverter
Inheritance: objectColorToRadBrushConverter
Implements:
Constructors
public ColorToRadBrushConverter()
Methods
Converts a Color or color name string to a RadSolidColorBrush.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The color value to convert. Can be a Color or a string representing a color name.
targetTypeTypeThe type to convert to.
parameterobjectAn optional parameter (not used).
cultureCultureInfoThe culture to use for conversion (not used).
Returns:A RadSolidColorBrush if the value is a valid color; otherwise, the original value.
Converts a value back from the target type. This operation is not implemented.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The value to convert back.
targetTypeTypeThe type to convert back to.
parameterobjectAn optional parameter (not used).
cultureCultureInfoThe culture to use for conversion (not used).
Returns:This method always throws a NotImplementedException.
Exceptions:Always thrown as this conversion is not implemented.