Class ContrastBrushConverter
This class provides a binding converter to update foreground and background values for SfBadge control.
Inheritance
System.Object
ContrastBrushConverter
Implements
System.Windows.Data.IMultiValueConverter
Namespace: Syncfusion.Windows.Controls.Notification
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class ContrastBrushConverter : Object, IMultiValueConverter
Constructors
ContrastBrushConverter()
Declaration
public ContrastBrushConverter()
Properties
AlphaThreshold
Gets or sets the alpha channel threshold below which a default color is used instead of black/white.
Declaration
public byte AlphaThreshold { get; set; }
Property Value
Type |
---|
System.Byte |
Methods
Convert(Object[], Type, Object, CultureInfo)
It assigns foreground value based on background value.
Declaration
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | values | |
System.Type | targetType | The type of the target property, as a type reference. |
System.Object | parameter | Holds brush or color value. |
System.Globalization.CultureInfo | culture | The language of the conversion. Not used. |
Returns
Type | Description |
---|---|
System.Object | The value to be set for foreground property. |
ConvertBack(Object, Type[], Object, CultureInfo)
Not implemented.
Declaration
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The target data being passed to the source. |
System.Type[] | targetTypes | |
System.Object | parameter | An optional parameter to be used in the converter logic. |
System.Globalization.CultureInfo | culture |
Returns
Type | Description |
---|---|
System.Object[] | The value to be passed to the source object. |
Implements
System.Windows.Data.IMultiValueConverter