title: WPF Resource section not effecting my Label control in the view
body: <p>I have created a style for a “required field” label which should place a red asterisk “*” in front of the label. Here is my xaml taken from the Application.Resources section of my WPF application:</p>
  
  <pre><code>    &lt;Style TargetType="Label" x:Key="RequiredField"&gt;
          &lt;Setter Property="Margin" Value="0,0,5,0" /&gt;
          &lt;Setter Property="HorizontalAlignment" Value="Right" /&gt;
          &lt;Setter Property="Content"&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate&gt;
                      &lt;StackPanel Orientation="Horizontal"&gt;
                          &lt;TextBlock Text="*" Foreground="Red" FontSize="10"/&gt;
                          &lt;TextBlock Text="{Binding}" /&gt;
                      &lt;/StackPanel&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
           &lt;/Setter&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p>The xaml in my view uses the resource like this:</p>
  
  <pre><code>&lt;Label Grid.Row="1" Grid.Column="0" Style="{StaticResource RequiredField}" Content="Name:"/&gt;
  </code></pre>
  
  <p>Annoyingly it doesn’t appear to modify the label. Can anyone tell me what I’ve done wrong?</p>