title: Applying a Custom Template for TextBox Header
body: <p>I am developing a windows phone app and my requirements include to use a specific color theme and not use the default theme (Light/Dark/etc.) of the phone.</p>
  
  <p>I'm stuck at formatting/templating the headers of textboxes. The following code in the app.xaml is not working:</p>
  
  <pre><code>&lt;DataTemplate x:Key="HeaderTemplate"&gt;
      &lt;TextBlock Text="{Binding}" Foreground="Black"/&gt;
  &lt;/DataTemplate&gt;
  
  &lt;Style TargetType="TextBox"&gt;
      &lt;Setter Property="Foreground" Value="#FFBBB8B8"/&gt;
      &lt;Setter Property="BorderBrush" Value="LightGray"/&gt;
      &lt;Setter Property="HeaderTemplate" Value="{StaticResource HeaderTemplate}"/&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>Is there either a way just to configure the theme used or a way to implement the template for the headers?</p>