I need to get the corresponding color name based on the color's hexadecimal palette code.
I tried:
brush = (new System.Windows.Media.SolidColorBrush(System.Windows.Media.Color.FromArgb(dialog.Color.A, dialog.Color.R, dialog.Color.G, dialog.Color.B)));
TheColor = Convert.ToString(brush); //here i get the hexadecimal only
eg. Red ,cyan,blue things like that.