title: How Do I Correctly Apply a Style to Content Presenter
body: <p>I'm working with this answer to this question about link buttons: </p>
  
  <p><a href="https://stackoverflow.com/a/3564706/945">https://stackoverflow.com/a/3564706/945</a></p>
  
  <p>The problem is that the TextDecoration Underline style is only being applied to autogenerated TextBlocks.</p>
  
  <pre><code>&lt;Button Style="{StaticResource LinkButton}"&gt;Text&lt;/Button&gt; 
  </code></pre>
  
  <p>'Text' is underlined</p>
  
  <pre><code>&lt;Button Style="{StaticResource LinkButton}"&gt;&lt;TextBlock Text='Text' /&gt;&lt;/Button&gt; 
  </code></pre>
  
  <p>'Text' is not underlined</p>
  
  <p>Why is it not applying to any TextBlock within the content?</p>
  
  <p>This is the relevant portion of the style:</p>
  
  <pre><code>&lt;Style x:Key="LinkButton" 
         TargetType="Button"
         BasedOn="{StaticResource ResourceKey={x:Type Button}}"
         &gt;
  
      &lt;Setter Property="Width" Value="Auto"/&gt;
  
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="Button"&gt;
                  &lt;ContentPresenter Content="{TemplateBinding Content}" 
                                    ContentTemplate="{TemplateBinding  ContentTemplate}"
                                    VerticalAlignment="Center"
                                    &gt;
                      &lt;ContentPresenter.Resources&gt;
                          &lt;Style TargetType="{x:Type TextBlock}"&gt;
                              &lt;Setter Property="TextDecorations" Value="Underline" /&gt;
                          &lt;/Style&gt;
                      &lt;/ContentPresenter.Resources&gt;
                  &lt;/ContentPresenter&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>