private Brush RandomizeBrush() { List <string> hexes = new List <string>() { "#FFB900", "#E81123", "#E74856", "#0078D7", "#0099BC", "#4C4A48", "#498205", "#E3008C" }; var colors = typeof(Colors).GetRuntimeProperties(); Random rand = new Random(DateTimeOffset.Now.Millisecond); var index = rand.Next(hexes.Count); return(HelpersClass.GetSolidColorBrush(hexes[index])); }