title: What is the XAML syntax for setting a Trigger on a Label?
body: <p>I have a DataTemplate that is displaying objects with three fields, e.g.:</p>
  
  <pre><code>Name = "Font Color"
  Value = "Orange"
  Editable = "True"
  </code></pre>
  
  <p>but I want to display them as e.g.:</p>
  
  <p><strong><em>Font Color: Orange Editable</em></strong></p>
  
  <p>But I'm having trouble finding the syntax to use Triggers here in order to e.g. display "Editable" when the field Editable="True"</p>
  
  <p>Does anyone know the syntax to do this?</p>
  
  <p>The following code results in "Binding cannot be used in Property":</p>
  
  <pre><code>&lt;DataTemplate x:Key="settingsItemTemplate"&gt;
      &lt;StackPanel Orientation="Horizontal"&gt;
          &lt;Label Content="{Binding XPath=Name}" ContentStringFormat=" {0}:"/&gt;
          &lt;Label Content="{Binding XPath=Value}"/&gt;
          &lt;Label&gt;
              &lt;Label.Triggers&gt;
                  &lt;Trigger Property="{Binding XPath=Editable}" Value="True"&gt;
                      &lt;Setter Property="Content" Value="Editable"/&gt;
                  &lt;/Trigger&gt;
                  &lt;Trigger Property="{Binding XPath=Editable}" Value="False"&gt;
                      &lt;Setter Property="Content" Value="NOT Editable"/&gt;
                  &lt;/Trigger&gt;
              &lt;/Label.Triggers&gt;
          &lt;/Label&gt;
      &lt;/StackPanel&gt;
  &lt;/DataTemplate&gt;
  </code></pre>