C# wpf set text color from code code example
Example 1: c# wpf change label text color
(name label).Foreground = new SolidColorBrush(Color.FromRgb(0, 0, 0));
Example 2: wpf label text color rgb string
System.Drawing.Color c = System.Drawing.ColorTranslator.FromHtml("#FFFFFF");
label.Foreground = new SolidColorBrush(System.Windows.Media.Color.FromArgb(c.A, c.R, c.G, c.B));