How can I get a Brush
to set a Background of e.g. a Grid
from a RGB Code.
I hace the RGB Code as a 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;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With