Class ColorConverter
Definition
Namespace: StardewUI.Framework.Converters
Assembly: StardewUI.dll
String converter for the XNA Color type.
public class ColorConverter :
StardewUI.Framework.Converters.IValueConverter<string, Microsoft.Xna.Framework.Color>,
StardewUI.Framework.Converters.IValueConverter
Inheritance
Object ⇦ ColorConverter
Implements
IValueConverter<string, Color>, IValueConverter
Remarks
Supports hex strings of the form #rgb
, #rrggbb
, or #rrggbbaa
, as well as any of the XNA named color strings like LimeGreen
.
Members
Constructors
Name | Description |
---|---|
ColorConverter() |
Methods
Name | Description |
---|---|
Convert(string) | Converts a value from the source type to the destination type. |
Details
Constructors
ColorConverter()
Methods
Convert(string)
Converts a value from the source type to the destination type.
Parameters
value
string
The value to convert.