/
posted by
Martin Mihaylov
on
Sep 07, 2008 (more than a year ago)
Here is an example of how to use a LinearGradient Brush to fill a rectangle for example: Xaml <Rectangle x:Name="MyRect" Width="100" Height="100"> <Rectangle.Fill> <LinearGradientBrush StartPoint="0,0" EndPoint="1,1" > <GradientStop Color="Yellow" Offset="0.2"></GradientStop> <GradientStop Color="Orange" Offset="0.5"></GradientStop> <GradientStop Color="Red" Offset="0.8"></GradientStop> </LinearGr ...