title: Binding Path Fill to Button Foreground in ContentPresenter
body: <p>I have a Button Style with a Template containing a ContentPresenter, in which I am attempting to bind the Fill of a Path to the Foreground of a button:</p>
  
  <pre><code>&lt;!-- This is inside the template of a button style --&gt;
  &lt;ContentPresenter&gt;
   &lt;ContentPresenter.Resources&gt;
    &lt;Style TargetType="{x:Type Path}"&gt;
     &lt;Setter Property="Fill" Value="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType=Button}}"/&gt;
     &lt;/Style&gt;
    &lt;/ContentPresenter.Resources&gt;
  &lt;/ContentPresenter&gt;
  </code></pre>
  
  <p>I also have a Path with no Fill set, that I can reference in the button as the content, like so:</p>
  
  <pre><code>&lt;Button Style="{DynamicResource MyButtonStyle}" Content="{DynamicResource PathIcon}" Foreground="Blue"/&gt;
  </code></pre>
  
  <p>I would expect the Path inside the button to be blue, but it isn't... it doesn't grab the foreground from the button.</p>
  
  <p>How can I get the Path to bind to the color of the button?</p>
  
  <p>Thank you!</p>
  
  <p>P.S.:</p>
  
  <p>If I put a hardcoded color in the Value (i.e. Value="Red"), the Path inside the button is red... so I know that works...</p>
  
  <pre><code>&lt;ContentPresenter&gt;
   &lt;ContentPresenter.Resources&gt;
    &lt;Style TargetType="{x:Type Path}"&gt;
     &lt;Setter Property="Fill" Value="Red"/&gt;
     &lt;/Style&gt;
    &lt;/ContentPresenter.Resources&gt;
  &lt;/ContentPresenter&gt;
  </code></pre>
  
  <hr>
  
  <p>Edit:</p>
  
  <p>Here is the complete Style and ControlTemplate:</p>
  
  <pre><code>&lt;Style x:Key="Button_Style" TargetType="{x:Type Button}"&gt;
          &lt;Setter Property="Foreground" Value="{StaticResource White_Brush}"/&gt;
          &lt;Setter Property="Template"&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate TargetType="{x:Type Button}"&gt;
                      &lt;Grid x:Name="grid" Background="Transparent"&gt;
                          &lt;ContentPresenter&gt;
                              &lt;ContentPresenter.Resources&gt;
                                  &lt;Style TargetType="{x:Type Path}"&gt;
                                      &lt;Setter Property="Fill" Value="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType=Button}}"/&gt;
                                  &lt;/Style&gt;
                              &lt;/ContentPresenter.Resources&gt;
                          &lt;/ContentPresenter&gt;
                      &lt;/Grid&gt;
                      &lt;ControlTemplate.Triggers&gt;
                          &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                                 &lt;!-- Should affect Text as well as Paths in the Content property of the button! --&gt;                              
                                 &lt;Setter Property="Foreground" Value="{StaticResource Black_Brush}"/&gt;
                          &lt;/Trigger&gt;
                      &lt;/ControlTemplate.Triggers&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  </code></pre>