Answer the question
In order to leave comments, you need to log in
How to convert system color name to color value in C#?
There is a string with the name of the system color, for example - BtnFace, how to get the value of System.Drawing.SystemColors.ButtonFace ?
Answer the question
In order to leave comments, you need to log in
.ToArgb()? Well, or there are properties R, G and B, as well as A, with the corresponding values.
And what is the goal? Why is this?
System.Drawing.Color color = System.Drawing.ColorTranslator.FromHtml("Red");
System.Drawing.Color wfColor = System.Drawing.Color.FromName("Red");
System.Windows.Media.Color color = System.Windows.Media.Color.FromArgb(wfColor.A,wfColor.R,wfColor.G,wfColor.B );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question