Summary
Converts a given
Color
to its Name
- Namespace
- MahApps
.Metro .Converters - Containing Type
- ColorToNameConverter
Syntax
public override object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
Parameters
Name | Type | Description |
---|---|---|
values | object[] | Needed: The Color . Optional: A Dictionary<TKey, TValue> |
targetType | Type | |
parameter | object | |
culture | CultureInfo |
Return Value
Type | Description |
---|---|
object | The name of the color or the Hex-Code if no name is available |