user979033
user979033

Reputation: 6420

WPF: how to get LinearGradientBrush color exactly like other

I want to get this kind of form color:

enter image description here

This is what i have try:

<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

Upvotes: -3

Views: 446

Answers (1)

Xiaoy312
Xiaoy312

Reputation: 14477

Like this?

enter image description here

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

Upvotes: 0

Related Questions