16进制、rgb格式、提供的颜色示例:
xxx.Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFFFFF")); xxx.Background = new SolidColorBrush(Color.FromRgb(255, 255, 255)); xxx.Background = Brushes.White;
另:WPF:将HTML RGB颜色值转化为Color对象的两种方式
标签:控件,颜色,Color,xxx,Brush,255 From: https://www.cnblogs.com/fangxinliu/p/16913682.html