XAML code to create a button with LineargradientBrush.

Abhisek
Posted by Abhisek under WPF category on | Views : 3475
<Button Margin="41.25,35,45,0" Height="40" VerticalAlignment="Top" Click="Button_Click" BorderThickness="2" FontSize="15">
<Button.Background>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="Red" Offset="0" />
<GradientStop Color="Yellow" Offset="0.25" />
<GradientStop Color="Green" Offset="0.75" />
<GradientStop Color ="Blue" Offset="1" />
</LinearGradientBrush>
</Button.Background>
ColorFull Button
</Button>

Comments or Responses

Login to post response