Class ColorToBrushConverter
Represents the converter that converts color values to brush values.
Inheritance
System.Object
ColorToBrushConverter
Implements
System.Windows.Data.IValueConverter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class ColorToBrushConverter : IValueConverter
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 | This parameter is not used. |
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