Class BrushToColorConverter
Represents the converter that converts Brush values to and from Color and vice versa. It is somehow an opposite of the ColorToBrushConverter.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class BrushToColorConverter : IValueConverter
Constructors
BrushToColorConverter()
Declaration
public BrushToColorConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Gets the color of the given SolidColorBrush.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
|
ConvertBack(Object, Type, Object, CultureInfo)
Creates a new SolidColorBrush from a Color.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
System.Object
value
|
System.Type
targetType
|
System.Object
parameter
|
System.Globalization.CultureInfo
culture
|
Returns
System.Object
|