Color radncolor = new Color();
GetRandomColor(radncolor);
text.BorderBrush = ну тут тип цвет;
public void GetRandomColor(Color color)
{
Random rand = new Random();
color = Color.FromArgb(rand.Next(0, 256), rand.Next(0, 256), rand.Next(0, 256));
return;
}
text.BorderBrush = new SolidColorBrush(Color.FromRgb(rand.Next(0, 256), rand.Next(0, 256), rand.Next(0, 256)));