How Many type of gradient brushes are available like LinearGradientBrush, SolidColorBrush? and when we create a GradientStop how the offset works?
LinearGradientBrush LGB = new LinearGradientBrush();
LGB.StartPoint = new Point(0, 0);
LGB.EndPoint = new Point(0, 1);
LGB.GradientStops.Add(new GradientStop(Color.FromRgb(255,251,255) , 0));
LGB.GradientStops.Add(new GradientStop(Color.FromRgb(206,207,222), 1));
LGB.GradientStops.Add(new GradientStop(Color.FromRgb(0, 247, 0), 2));
rect.Fill = LGB;
Why the third one "Color.FromRgb(0, 247, 0)" is not reflecting?
Please suggest,where i am wrong?