WPF:如何获得完全一样的LinearGradientBrush颜色

时间:2019-01-03 16:53:45

标签: c# wpf colors lineargradientbrush

我想获得这种表格颜色:

enter image description here

这是我尝试过的:

<Border.Background>
    <LinearGradientBrush StartPoint="0,0" EndPoint="1,1" >
        <GradientStop Color="Black" Offset="0.5" />
        <GradientStop Color="Red" Offset="1.0" />
    </LinearGradientBrush>
</Border.Background>

enter image description here

1 个答案:

答案 0 :(得分:0)

喜欢吗?

enter image description here

<LinearGradientBrush StartPoint='1,0' EndPoint='0,1' >
    <GradientStop Color='#FF663F51' Offset='0' />
    <GradientStop Color='#FF320E42' Offset='1' />
</LinearGradientBrush>