title: Silverlight 4 DataGrid column header style
body: <p>I am trying to affect the background pattern on a DataGrid in Silverlight 4.  I have the following style:</p>
  
  <pre><code>&lt;Style x:Key="DashboardGridHeaderStyle"
         TargetType="primitives:DataGridColumnHeader"&gt;
      &lt;Setter Property="FontSize"
              Value="14" /&gt;
      &lt;Setter Property="FontWeight"
              Value="Bold" /&gt;
      &lt;Setter Property="Foreground"
              Value="{StaticResource xrxGray_I}" /&gt;
      &lt;Setter Property="Background"
              Value="{StaticResource xrxGray_B}" /&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate&gt;
                  &lt;Grid Height="50" Width="100"&gt;
                      &lt;TextBlock Text="{TemplateBinding Header}" /&gt;
                  &lt;/Grid&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>This causes an exception when it is applied.  This is caused by the Template setter.  Does anyone know how to change the background of the column header (I want a solid color instead of the default gradient)?</p>
  
  <p>Thanks for any help.</p>