title: Set Validation Tooltip in CodeBehind instead of XAML
body: <p>I would like to know how to translate the following code to codebehind instead of XAML:</p>
  
  <pre><code>&lt;Style.Triggers&gt;
      &lt;Trigger Property="Validation.HasError" Value="true"&gt;
          &lt;Setter Property="ToolTip"
            Value="{Binding RelativeSource={RelativeSource Self},
            Path=(Validation.Errors)[0].ErrorContent}"/&gt;
      &lt;/Trigger&gt;
  &lt;/Style.Triggers&gt;
  </code></pre>
  
  <p>The part I can't figure out is the Path portion. I have the following but it doesn't work:</p>
  
  <pre><code>new Trigger
  {
      Property = Validation.HasErrorProperty,
      Value = true,
      Setters = 
      {
          new Setter
          {
              Property = Control.ToolTipProperty,
              // This part doesn't seem to work
              Value = new Binding("(Validation.Errors)[0].ErrorContent"){RelativeSource = RelativeSource.Self}
           }
       }
   }
  </code></pre>
  
  <p>Help?</p>