title: wp7 PivotItem HeaderTemplate
body: <p>I want to have each header font set to different color. It should be very easy, but it's not. I was looking for it several ours. I have found one solution, but it doesn't work for me.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;controls:Pivot Margin="0" Title="ALL NOTES" VerticalAlignment="Top" HeaderTemplate="{StaticResource DataTemplate1}"  &gt;
          &lt;controls:PivotItem Header="notebooks" Foreground="White" Height="600"&gt; ...
  
  ...&lt;DataTemplate x:Key="DataTemplate1"&gt;
          &lt;controls:Pivot ItemsSource="{Binding Items}" &gt; 
              &lt;controls:Pivot.HeaderTemplate&gt; 
                  &lt;DataTemplate&gt; 
                      &lt;Grid  Width="200" Height="100"&gt; 
                          &lt;TextBlock Margin="0" Text="{Binding Title}" /&gt; 
                      &lt;/Grid&gt; 
                  &lt;/DataTemplate&gt; 
              &lt;/controls:Pivot.HeaderTemplate&gt; 
          &lt;/controls:Pivot&gt; 
      &lt;/DataTemplate&gt;
  &lt;/phone:PhoneApplicationPage.Resources&gt;
  </code></pre>