WPF 颜色

渐变色

<Border CornerRadius="8" BorderThickness="2" BorderBrush="#BF66FF">
    <Border.Background>
        <LinearGradientBrush StartPoint="1,1" EndPoint="0,0">
            <LinearGradientBrush.GradientStops>
                <GradientStop Offset="0.0" Color="#9E01AB"/>
                <GradientStop Offset="0.5" Color="#4A0197"/>
            </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>
    </Border.Background>
</Border>

  

posted @ 2021-09-09 12:05  microsoft-zhcn  阅读(126)  评论(0编辑  收藏  举报