Class
ColorToRadBrushConverter

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:

cs-api-definition
public class ColorToRadBrushConverter : IValueConverter

Inheritance: objectColorToRadBrushConverter

Implements: IValueConverter

Constructors

ColorToRadBrushConverter()

Declaration

cs-api-definition
public ColorToRadBrushConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts a Color or color name string to a RadSolidColorBrush.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The color value to convert. Can be a Color or a string representing a color name.

targetType

Type

The type to convert to.

parameter

object

An optional parameter (not used).

culture

CultureInfo

The culture to use for conversion (not used).

Returns

object

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

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The value to convert back.

targetType

Type

The type to convert back to.

parameter

object

An optional parameter (not used).

culture

CultureInfo

The culture to use for conversion (not used).

Returns

object

This method always throws a NotImplementedException.

Exceptions

NotImplementedException

Always thrown as this conversion is not implemented.