title: Change TextBlock Foreground when Pressed
body: <p>I was referencing <a href="http://msdn.microsoft.com/en-us/library/cc645061(v=vs.95).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/cc645061(v=vs.95).aspx</a> in order to change the foreground of the textblock text when it is pressed, but I am getting an error on line <code>&lt;Setter Property="Template"&gt;</code> stating that <code>The member 'Template' is not recognized or is not accessible</code>. I would like to, by default, set the foreground to the device's <code>PhoneAccentBrush</code> and then when pressed set the foreground to <code>PhoneDisabledBrush</code> (the grayish color). How might I accomplish this in WP8?</p>
  
  <pre><code>&lt;Style x:Key="TextBlockStyle1" TargetType="TextBlock"&gt;
          &lt;Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/&gt;
          &lt;Setter Property="FontSize" Value="{StaticResource PhoneFontSizeNormal}"/&gt;
          &lt;Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/&gt;
          &lt;Setter Property="Margin" Value="{StaticResource PhoneHorizontalMargin}"/&gt;
          &lt;Setter Property="Template"&gt; &lt;!-- Error: The member 'Template' is not recognized or is not accessible. --&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate TargetType="TextBox"&gt;
                      &lt;Grid x:Name="RootElement"&gt;
                          &lt;vsm:VisualStateManager.VisualStateGroups&gt;
                              &lt;vsm:VisualStateGroup x:Name="CommonStates"&gt;
                                  &lt;vsm:VisualState x:Name="Normal"/&gt;
                                  &lt;vsm:VisualState x:Name="MouseOver"&gt;
                                      &lt;Storyboard&gt;
                                          &lt;ColorAnimation Storyboard.TargetName="MouseOverBorder" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" To="#FF99C1E2" Duration="0"/&gt;
                                      &lt;/Storyboard&gt;
                                  &lt;/vsm:VisualState&gt;
                                  &lt;vsm:VisualState x:Name="Disabled"&gt;
                                      &lt;Storyboard&gt;
                                          &lt;DoubleAnimation Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity" To="1" Duration="0"/&gt;
                                      &lt;/Storyboard&gt;
                                  &lt;/vsm:VisualState&gt;
                              &lt;/vsm:VisualStateGroup&gt;
                          &lt;/vsm:VisualStateManager.VisualStateGroups&gt;
                      &lt;/Grid&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
  
      &lt;/Style&gt;
  </code></pre>