title: Binding two different Properties to one TextBlock based on boolean value in WPF
body: <p>I have following problem: I have <code>UserControl</code> which <code>DataContext</code> is set to one object with two different Properties (beside others): <code>Price (decimal)</code> and <code>AlternativePrice (string)</code>.</p>
  
  <p>In <code>UserControl</code> I have <code>TextBlock</code> which <code>Text</code> Property I want to set based on evaluating <code>AlternativePrice == decimal.Zero</code>.</p>
  
  <p>If it's <code>true</code>, <code>Text</code> Property should be set to <code>Text={Binding Price}</code>, if <code>false</code>, then <code>Text={Binding AlternativePrice}</code>.</p>
  
  <p>I found some guides that mention <code>Triggers</code> using, but I wasn't able to make it run.
  Is there a way how to do something like this?</p>
  
  <p>Here is part of my code:</p>
  
  <pre><code>&lt;TextBlock Foreground="..." x:Name="priceTextBlock" TextWrapping="Wrap" Text="{Binding ?}"/&gt;
  </code></pre>
  
  <p>Thanks in advance for any help.</p>