ColorToNameConverter Class

Namespace
MahApps.Metro.Converters
Interfaces
  • IValueConverter
  • IMultiValueConverter
Base Types
graph BT Type-->Base0["MarkupMultiConverter"] click Base0 "/api/MahApps.Metro.Converters/MarkupMultiConverter" Base0-->Base1["MarkupExtension"] Type-.->Interface0["IValueConverter"] Type-.->Interface1["IMultiValueConverter"] Type["ColorToNameConverter"] class Type type-node

Syntax

[MarkupExtensionReturnType(typeof(ColorToNameConverter))]
[ValueConversion(typeof(Color? ), typeof(string))]
public class ColorToNameConverter : MarkupMultiConverter, IValueConverter, IMultiValueConverter

Attributes

Type Description
MarkupExtensionReturnType
ValueConversion

Methods

Name Value Summary
Convert(object, Type, object, CultureInfo) object
Converts a given Color to its Name
Convert(object[], Type, object, CultureInfo) object
Converts a given Color to its Name
ConvertBack(object, Type, object, CultureInfo) object
Converts a given string back to a Color
ConvertBack(object, Type[], object, CultureInfo) object[]
The ConvertBack-Method is not available inside a MultiBinding. Use a Binding with the optional Binding.ConverterParameter instead.
ProvideValue(IServiceProvider) object
Inherited from MarkupMultiConverter