[]
Represents a Binding converter that converts a color to a brush.
[ValueConversion(typeof(Color), typeof(SolidColorBrush))]
[ValueConversion(typeof(Color), typeof(SolidColorBrush))]
public class ColorToBrushConverter : IValueConverter
<xref href="C1.WPF.Schedule.ColorToBrushConverter" data-throw-if-not-resolved="false"></xref> is a two-way converter. The source value
must be a System.Windows.Media.Color, and the target value is a System.Windows.Media.SolidColorBrush based on the color.
| Name | Description |
|---|---|
| ColorToBrushConverter() |
| Name | Description |
|---|---|
| Default | Gets an instance of ColorToBrushConverter. |
| Name | Description |
|---|---|
| Convert(object, Type, object, CultureInfo) | Converts a value. The data binding engine calls this method when it propagates a value from the binding source to the binding target. |
| ConvertBack(object, Type, object, CultureInfo) | Converts a value. The data binding engine calls this method when it propagates a value from the binding target to the binding source. |