ClassColorToRadBrushConverter
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
ColorToRadBrushConverter()
Declaration
public ColorToRadBrushConverter()
Methods
Convert(object, Type, object, CultureInfo)
Converts a Color or color name string to a RadSolidColorBrush.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The color value to convert. Can be a Color or a string representing a color name.
targetType
The type to convert to.
parameter
An optional parameter (not used).
culture
The culture to use for conversion (not used).
Returns
A RadSolidColorBrush if the value is a valid color; otherwise, the original value.
ConvertBack(object, Type, object, CultureInfo)
Converts a value back from the target type. This operation is not implemented.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The value to convert back.
targetType
The type to convert back to.
parameter
An optional parameter (not used).
culture
The culture to use for conversion (not used).
Returns
This method always throws a NotImplementedException.
Exceptions
Always thrown as this conversion is not implemented.