日期:2014-05-17 浏览次数:21071 次
<Rectangle x:Name="myRec" Width="20" Height="200" Stroke="Black">
<Rectangle.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Color="Blue" Offset="1"></GradientStop>
<GradientStop Color="White" Offset="0.6"></GradientStop>
<GradientStop Color="Blue" Offset="0.6"></GradientStop>
<GradientStop Color="White" Offset="0"></GradientStop>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>