GradientStop stop = new GradientStop(); stop.Color = Colors.Yellow; stop.Offset = 0.0; myBrush.GradientStops.Add(stop);