ColorToHexConverter Class
Definition
Converts a color to a hex string and vice versa.
public class ColorToHexConverter
Constructors
| Name | Description |
|---|---|
| ColorToHexConverter | No summary available. |
ColorToHexConverter Constructor
public ColorToHexConverter()
Methods
| Name | Description |
|---|---|
| Convert | Converts a value. |
| ConvertBack | Converts a value. |
| ParseHexString | Parses a hex color value string into a new Avalonia.Media.Color. |
| ToHexString | Converts the given color to its hex color value string representation. |
Convert Method
Converts a value.
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Parameters
value object
The value to convert.
targetType Type
The type of the target.
parameter object
A user-defined parameter.
culture System.Globalization.CultureInfo
The culture to use.
Returns
object
The converted value.