I have the following as the body of a UserControl
:
<Label FontWeight="Bold"
x:Name="PaletteLabel"
HorizontalAlignment="Stretch"
BorderThickness="1"
>
<Label.Background>
<LinearGradientBrush EndPoint="0.5,1"
StartPoint="0.5,0">
<GradientStop Color="#FFB6B5C3"
Offset="0" />
<GradientStop Color="#FFF4F4F6"
Offset="1" />
</LinearGradientBrush>
</Label.Background>
<ContentPresenter />
</Label>
I expect to be able to use it like this:
<uc:NiceLabel>Text Content</uc:NiceLabel>
But that does not give me the effect I expect. Am I making any obvious mistakes here?