How can I get a Brush to set a Background of e.g. a Grid from a RGB Code.
Brush
Grid
I hace the RGB Code as a int:
int
R = 12 B = 0 G = 255
I need to know how to convert it into a Brush
var brush = new SolidColorBrush(Color.FromArgb(255, (byte)R, (byte)G, (byte)B)); myGrid.Background = brush;
1.4m articles
1.4m replys
5 comments
57.0k users