title: In WPF, is it possible for the XAML to obtain the color of the currently rendered background?
body: <p>I have a control that displays a progress bar.</p>
  
  <p>I want the color of the progress bar to effectively be a stronger version of the currently rendered background color, e.g.:</p>
  
  <ul>
  <li>If the background is light yellow, I want the progress bar to be a strong yellow.</li>
  <li>If the background is light green, I want the progress bar to be a strong green.</li>
  <li>etc.</li>
  </ul>
  
  <p>Is this possible in WPF? </p>
  
  <p>Note that I have no idea who is setting the background color for me, so I can't really set it manually.</p>
  
  <p><strong>Update</strong></p>
  
  <p>I should clarify that some of the parent controls set the <code>Background</code> to <code>transparent</code> in the XAML. </p>
  
  <p>However, as far as the visual tree goes, this simply means that the <code>Background</code> gets passed down to all of the children. </p>