title: Using binding for the Value property of DataTrigger condition
body: <p>I'm working on a WPF application and struggling with a data trigger. I'd like to bind the value of the trigger condition to some object I have: </p>
  
  <pre><code>&lt;DataTrigger Binding="{Binding Foo}" 
               Value="{Binding ElementName=AnotherElement, Path=Bar}"&gt;..
  </code></pre>
  
  <p>However, I'm not allowed as it doesn't seem to be possible to use bindings for the Value property. Is it? Can I achieve this somehow? I get the following error: </p>
  
  <blockquote>
    <p>A 'Binding' cannot be set on the 'Value' property of type 'DataTrigger'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject.</p>
  </blockquote>