Setting silverlight color in codebehind using color.fromargb function

int red = 0; int green = 255; int blue = 0; 
layoutRoot. Background = new SolidColorBrush(Color.FromArgb(255, red, green, blue) );

An alpha value of 255 is completely opaque, while 0 is completely transparent.

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.