New to Telerik UI for WPFStart a free 30-day trial

Represents the converter that converts Brush values to and from Color and vice versa. It is somehow an opposite of the ColorToBrushConverter.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class BrushToColorConverter : IValueConverter

Inheritance: objectBrushToColorConverter

Implements: IValueConverter

Constructors

C#
public BrushToColorConverter()

Methods

Gets the color of the given SolidColorBrush.

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobjecttargetTypeTypeparameterobjectcultureCultureInfoReturns:

object

Creates a new SolidColorBrush from a Color.

C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobjecttargetTypeTypeparameterobjectcultureCultureInfoReturns:

object