title: WPF: Condition Binding versus Property, XamlParseException using either
body: <p>I'm having trouble with a <code>Condition</code> for a <code>MultiTrigger</code>.  If I do the following:</p>
  
  <pre><code>&lt;Condition Binding="{Binding RelativeSource={RelativeSource
      AncestorType={x:Type ListView}}}" Property="IsEnabled" Value="True"/&gt;
  </code></pre>
  
  <p>Then I get this exception:</p>
  
  <blockquote>
    <p>Condition cannot use both Property and Binding.  Error at object 'System.Windows.Condition' in markup file</p>
  </blockquote>
  
  <p>However, when I do the following:</p>
  
  <pre><code>&lt;Condition Binding="{Binding RelativeSource={RelativeSource
      AncestorType={x:Type ListView}}, Path=IsEnabled}" Value="True"/&gt;
  </code></pre>
  
  <p>Then I get this exception:</p>
  
  <blockquote>
    <p>Must specify both Property and Value for Trigger.  Error at object 'System.Windows.Condition' in markup file</p>
  </blockquote>
  
  <p>What gives?  If it matters, here's the entire trigger:</p>
  
  <pre><code>&lt;MultiTrigger&gt;
      &lt;MultiTrigger.Conditions&gt;
          &lt;Condition Binding="{Binding Path=IsSelected}" Value="True"/&gt;
          &lt;Condition Binding="{Binding Path=ItemsControl.AlternationIndex}"
                     Value="0"/&gt;
          &lt;Condition Binding="{Binding RelativeSource={RelativeSource
              AncestorType={x:Type ListView}}, Path=IsEnabled}"
                     Value="True"/&gt;
      &lt;/MultiTrigger.Conditions&gt;
      &lt;Setter Property="Background"
              Value="{StaticResource evenSelected}" /&gt;
      &lt;Setter Property="BorderBrush"
              Value="{StaticResource evenSelectedBorder}" /&gt;
  &lt;/MultiTrigger&gt;
  </code></pre>