WPF Hex to Brush Conversion

I recently found myself needing to do this and it took longer than expected! Anyway here is my solution!

[source:c-sharp] BrushConverter bc = new BrushConverter();
Brush brush;
brush = (Brush)bc.ConvertFrom(ci.Colour);
txtSetterColor.Background = brush;
[/source]
Share

FireFox

Well its now official! According to the WC3 web site FireFox is now the most popular browser used on the internet. A whopping great 39% of internet users!! This is really cool news, a deserving application gaining the status of also being the most popular.

Share