Click here to Skip to main content
15,892,746 members
Articles / Silverlight

Color Code to SolidColor Conversion

Rate me:
Please Sign up or sign in to vote.
4.00/5 (1 vote)
3 Jan 2012CPOL 19.6K   1  
Convert color code to SolidColor.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
10 Jan 2012Adam David Hill
I think there might be a couple of typos in the original code. This works, though...public SolidColorBrush GetColor(string ColorCode){ return (SolidColorBrush)XamlReader.Load( "<SolidColorBrush xmlns=\"http://schemas." + "microsoft.com/winfx/2006/xaml/presentation\"...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions