WPF How To Set Color Value Using Hexademical Value
Here's a snippet that passes a hexa color and set a wpf control object's background/foreground property.
Original Source: http://jammer.biz/blog2/?p=169
Greg
BrushConverter bc = new BrushConverter(); Brush brush; brush = (Brush)bc.ConvertFrom("#003F87"); notes.SetValue(TextBlock.BackgroundProperty, brush);
Greg
Comments
Post a Comment