title: Applying a style to all the TextBlocks that are children of StackPanel
body: <p>Suppose I have a layout as below:</p>
  
  <pre><code>&lt;Grid&gt;
  
      &lt;TextBlock........ /&gt;
      &lt;StackPanel&gt;
          &lt;TextBlock ...../&gt;
          &lt;!--Other Elements--&gt;
      &lt;/StackPanel&gt;
  
      &lt;TextBlock........ /&gt;
      &lt;StackPanel&gt;
          &lt;TextBlock ...../&gt;
          &lt;!--Other Elements--&gt;
      &lt;/StackPanel&gt;
  
      &lt;TextBlock........ /&gt;
      &lt;StackPanel&gt;
          &lt;TextBlock ...../&gt;
          &lt;!--Other Elements--&gt;
      &lt;/StackPanel&gt;
  
  &lt;/Grid&gt;
  </code></pre>
  
  <p>Now I want to apply a style like below to all the textblocks that are children of StackPanel in above mentioned layout.</p>
  
  <pre><code>&lt;Style TargetType={x:Type TextBlock}&gt;
      &lt;Setter Property="FontSize" Value="20" /&gt;
  &lt;Style&gt;
  </code></pre>