Class ColorToBrushConverter
Represents the converter that converts color values to brush values.
Inheritance
System.Object
ColorToBrushConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Kanban
Assembly: Syncfusion.SfKanban.WPF.dll
Syntax
public class ColorToBrushConverter : Object, IValueConverter
Remarks
The convert method returns LinearGradientBrush value when the parameter passed with the text LinearGradientBrush else it converts the color to SolidColorBrush.
Constructors
ColorToBrushConverter()
Declaration
public ColorToBrushConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts a color value to a brush value.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The color value to convert. |
System.Type | targetType | This parameter is not used. |
System.Object | parameter | The string value passed as parameter. |
System.Globalization.CultureInfo | culture | This parameter is not used. |
Returns
Type | Description |
---|---|
System.Object | Returns a brush value. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts a brush value to a color value.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The brush value to convert. |
System.Type | targetType | This parameter is not used. |
System.Object | parameter | This parameter is not used. |
System.Globalization.CultureInfo | culture | This parameter is not used. |
Returns
Type | Description |
---|---|
System.Object | Returns a color value. |
Implements
System.Windows.Data.IValueConverter