Example of using RadialGradientBrush in silverlight XAML

The RadialGradientBrush brush Paints a gradient between a focal point and a circle on the outside of the shape.

<Ellipse>
  <Ellipse.Fill>
    <RadialGradientBrush>
      <GradientStop Color="Black"
                    Offset="0" />
      <GradientStop Color="Red"
                    Offset="1" />
    </RadialGradientBrush>
  </Ellipse.Fill>
</Ellipse>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.