title: WPF Triggers
body: <p>I'm trying to set a trigger to display a block of text when the value i get for the cell is a certain type.</p>
  
  <p>I have successfully managed to display an image in the same situation, but in this circumstance i don't want an image, but some text.</p>
  
  <p>Have commented out lines in order to test.try to make it work. The commented out code works ! The textblock text=xxx inside it, doesn't.</p>
  
  <p>This is my attempts(s)</p>
  
  <pre><code>&lt;wpfToolkit:DataGridTemplateColumn Header="P" Width="20"&gt;
      &lt;wpfToolkit:DataGridTemplateColumn.CellTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;!-- &lt;DataTemplate.Triggers&gt; --&gt;
              &lt;!-- &lt;DataTrigger Binding="{Binding PrecedenceIndicator}" Value="1"&gt; --&gt;
              &lt;TextBlock Text="XXX" /&gt;
              &lt;!-- &lt;/DataTrigger&gt; --&gt;
              &lt;!-- &lt;DataTrigger Binding="{Binding PrecedenceIndicator}" Value="2"&gt; --&gt;
              &lt;!-- &lt;Setter TargetName="cablePrecedenceIndicatorImage" Property="Source" Value="Resources\Images\small_exclamation_mark.png"/&gt; --&gt;
              &lt;!-- &lt;/DataTrigger&gt; --&gt;
              &lt;!-- &lt;/DataTemplate.Triggers&gt; --&gt;
          &lt;/DataTemplate&gt;
      &lt;/wpfToolkit:DataGridTemplateColumn.CellTemplate&gt;
  &lt;/wpfToolkit:DataGridTemplateColumn&gt;
  </code></pre>