How to convert RGB value to color name in Silverlight 4.0?

Posted by eflles on Stack Overflow See other posts from Stack Overflow or by eflles
Published on 2010-05-04T08:54:50Z Indexed on 2010/05/04 8:58 UTC
Read the original article Hit count: 747

The code :

Dim myColor as Color = Colors.Red
Console.WriteLine(myColor.ToString)

Results in :

#FFFF0000

Is it possible to get the color name in Silverlight without making a select case on the RGB values?

© Stack Overflow or respective owner

Related posts about from-rgb

Related posts about silverlight-4.0