title: WPF Chart Legend Item Style
body: <p>I am trying to style the Legend Items in my WPF Chart. I have the following LegendStyle, but this doesn't change anything. What am I doing wrong?</p>
  
  <p>Thanks!</p>
  
  <pre><code>&lt;Style x:Key="LegendStyle1" TargetType="{x:Type datavis:Legend}"&gt;
      &lt;Setter Property="ItemContainerStyle"&gt;
          &lt;Setter.Value&gt;
              &lt;Style TargetType="charting:LegendItem"&gt;
                  &lt;Setter Property="Template"&gt;
                      &lt;Setter.Value&gt;
                          &lt;ControlTemplate TargetType="charting:LegendItem"&gt;
                              &lt;Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"&gt;
                                  &lt;StackPanel Orientation="Horizontal" VerticalAlignment="Center"&gt;
                                      &lt;Rectangle Width="40" Height="40" Fill="{Binding Background}" Stroke="{Binding BorderBrush}" StrokeThickness="1" VerticalAlignment="Center" /&gt;
                                      &lt;datavis:Title Content="{TemplateBinding Content}" VerticalAlignment="Center"/&gt;
                                  &lt;/StackPanel&gt;
                              &lt;/Border&gt;
                          &lt;/ControlTemplate&gt;
                      &lt;/Setter.Value&gt;
                  &lt;/Setter&gt;
              &lt;/Style&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>