Color Code to SolidColor Conversion [Tip/Trick]
Posted: 10 Jan 2012
Updated: 10 Jan 2012
Views: 1,116
Rating: 5.00/5
Votes: 2
Popularity: 1.51
Licence: The Code Project Open License (CPOL)
Bookmarked: 0
Downloaded: 0
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\"...