Posted By

qrist0ph on 10/12/08



Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


WPF Colors

 / Published in: C#

  1. Random r = new Random();
  2. byte[] argb = new byte[4];
  3. r.NextBytes(argb);
  4. SolidColorBrush mySolidColorBrush = new SolidColorBrush();
  5. mySolidColorBrush.Color = Color.FromArgb(argb[0], argb[1], argb[2], argb[3]);

Report this snippet  

You need to login to post a comment.