从字符串到画刷:
var converter = new System.Windows.Media.BrushConverter();
var brush = (Brush)converter.ConvertFromString("#FFFFFF90");
Fill = brush;
(Color)ColorConverter.ConvertFromString("#2786E4")
tblock_gethistory.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#2786E4"));
Color color = Color.FromArgb(透明度, red数字, green数字, blue数字); //这四个数字范围都是(0-255)
Color color = Color.FromRgb(red数字, green数字, blue数字);//默认透明度为255;
Color color = (Color)ColorConverter.ConvertFromString(“Blue”);