如何在Done Button中获得酷炫的边框? Winforms / WPF并不重要。
我想我需要渐变画笔,但我不知道如何像上面那样使用它。
编辑:现在看起来很酷(当然有吉姆的帮助):<Button x:Name="Button1" Height="40" Width="120" BorderThickness="2" Background="#FF262628" Foreground="White">
<Button.BorderBrush>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" >
<GradientStop Color="#AD9974" Offset="0" />
<GradientStop Color="#533D25" Offset="1" />
<GradientStop Color="#675A37" Offset="2"/>
<GradientStop Color="#795B1F" Offset="3"/>
</LinearGradientBrush>
</Button.BorderBrush>
DONE
</Button>
答案 0 :(得分:0)
使用XAML,您可以使用unique, uniqueInd, uniqueCount = np.unique(data['job'], return_inverse=True, return_counts=True)
means = np.bincount(uniqueInd, data['income'])/uniqueCount
return np.dstack([unique, means])
和Button.Borderbrush
e.g。
LinearGradientBrush
如果必须,可以在渐变中添加更多颜色:
<Button x:Name="Button1" Height="40" Width="120" BorderThickness="2">
<Button.BorderBrush>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" >
<GradientStop Color="#d0b175" Offset="0" />
<GradientStop Color="#624c23" Offset="1.0" />
</LinearGradientBrush>
</Button.BorderBrush>
DONE
</Button>