Try this function
public Color GetColorFromText(string colorString)
{
Type colorType = (typeof(System.Windows.Media.Colors));
if (colorType.GetProperty(colorString) != null)
{
object colour = colorType.InvokeMember(colorString, BindingFlags.GetProperty, null, null, null);
if (colour != null) ;
{
return (Color)colour;
}
}
return Color.FromRgb(255,255,255);
}
then you can call it like this
this.comboBox1.Background = new SolidColorBrush(GetColorFromText("Blue"));
Hope this helps