wpf label text color rgb string

Code Example - 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));