ColorFromString for Silverlight or .NET(yinyangme.com)
submitted by
jmccurdy(40) 2 years ago
Here is a simple static class, ColorFromString, that offers a single string extension method, ToColor, to create Color objects from various strings representations of color:
•Named colors
•ARGB colors as Hex (8 nibbles)
•RGB colors as Hex (6 nibbles)
•ARGB colors as comma or space separated decimal
•RGB colors as comma or space separated decimal
|category: Silverlight
|Views: 4
tags:
Silverlight another
Everyones tags:
Your Tags: