1
<Canvas xmlns="http://schemas.microsoft.com/client/2007">
2
<!-- removing Canvas.Top gets Moonlight close to the right value -->
3
<Rectangle Canvas.Top="200" Canvas.Left="10" Width="100" Height="200">
5
<LinearGradientBrush MappingMode="Absolute" StartPoint="40,100" EndPoint="0,150">
6
<GradientBrush.GradientStops>
7
<GradientStopCollection>
8
<GradientStop Color="#FFFF0000" Offset="0.0" />
9
<GradientStop Color="#FF00FF00" Offset="0.5" />
10
<GradientStop Color="#FF0000FF" Offset="1.0" />
11
</GradientStopCollection>
12
</GradientBrush.GradientStops>
13
</LinearGradientBrush>