The Background property sets the background colors of a Label.
The following code snippet uses a linear gradient brush to draw the background
of a Label.
<Window x:Class="LabelSample.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid Name="LayoutRoot">
<Label Name="McLabel"
Width="240" Height="30"
Foreground="DarkBlue"
FontFamily="Verdana" FontSize="14" FontWeight="Bold">
I am a label control
<Label.Background>
<LinearGradientBrush StartPoint="0,0"
EndPoint="1,1" >
<GradientStop Color="Blue"
Offset="0.1" />
<GradientStop Color="Orange"
Offset="0.25" />
<GradientStop Color="Green"
Offset="0.75" />
<GradientStop Color="Red"
Offset="1.0" />
</LinearGradientBrush>
</Label.Background>
</Label>
</Grid>
</Window>