[]
        
(Showing Draft Content)

C1.WPF.Schedule.ColorToBrushConverter

ColorToBrushConverter Class

Represents a Binding converter that converts a color to a brush.

Inheritance
ColorToBrushConverter
Implements
Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.dll
Syntax
[ValueConversion(typeof(Color), typeof(SolidColorBrush))]
[ValueConversion(typeof(Color), typeof(SolidColorBrush))]
public class ColorToBrushConverter : IValueConverter
Remarks

ColorToBrushConverter 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.

Constructors

Name Description
ColorToBrushConverter()

Fields

Name Description
Default

Gets an instance of ColorToBrushConverter.

Methods

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.