Class ColorToBrushConverter
Represents a class for converting color type to brush type.
Inheritance
System.Object
ColorToBrushConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.Windows.Tools
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class ColorToBrushConverter : Object, IValueConverter
Constructors
ColorToBrushConverter()
Declaration
public ColorToBrushConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts color to solid brush.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Color to be converted. |
System.Type | targetType | Type, the color is to be converted to. |
System.Object | parameter | Does not matter. |
System.Globalization.CultureInfo | culture | Currently used culture. Not used here. |
Returns
Type | Description |
---|---|
System.Object | Created brush. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts solid brush to color brush.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Brush to be converted. |
System.Type | targetType | Type, the color is to be converted to. |
System.Object | parameter | Does not matter. |
System.Globalization.CultureInfo | culture | Currently used culture. Not used here. |
Returns
Type | Description |
---|---|
System.Object | Created brush. |
Implements
System.Windows.Data.IValueConverter