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;
2.1m questions
2.1m answers
60 comments
57.0k users