title: How do I set the foreground color of any child element in a Grid from the Grid's style?
body: <p>How do I set the <code>Foreground</code> color of all child elements in a <code>Grid</code> from within the Grid's Style? I know I've done this before, but I can't remember where or how.</p>
  
  <pre><code>&lt;Style x:Key="MyGridStyle" TargetType="{x:Type Grid}"&gt;
      // I want to set the font color here
  &lt;/Style&gt;
  
  &lt;Grid Style="{StaticResource MyGridStyle}"&gt;
      ...
  &lt;/Grid&gt;
  </code></pre>
  
  <p>I know I can use</p>
  
  <pre><code>&lt;Grid.Resources&gt;
      &lt;Style TargetType="{x:Type TextBlock}"&gt;
          &lt;Setter Property="Foreground" Value="Red" /&gt;
      &lt;/Style&gt;
      &lt;Style TargetType="{x:Type TextBox}"&gt;
          &lt;Setter Property="Foreground" Value="Red" /&gt;
      &lt;/Style&gt;
  &lt;/Grid.Resources&gt;
  </code></pre>
  
  <p>however I want to set this value in the <code>Style</code>, not in the <code>Grid</code></p>