title: Binding Background (color) for the entire row of a telerik:GridViewDataControl WPF control
body: <p>I have the following class:</p>
  
  <pre><code>public class ErrorMessage
  {
      public enum Severity { Error, Warning}
  
      public ErrorMessage(Severity severity, string description) 
      {
          this.severity = severity;
          this.description = description;
      }
      public Severity severity { get; set; }
      public string description { get; set; }
      public string background
      {
          get
          {
              switch (this.severity)
              {
                  case Severity.Error: return "Red";
                  case Severity.Warning: return "Yellow";
                  default: throw new Exception("severity out of bounds");
              }
          }
      }
  }
  </code></pre>
  
  <p>And I am binding a List of ErrorMessage to a telerik GridViewDataControl WPF control:</p>
  
  <pre><code>&lt;telerik:GridViewDataControl Margin="0" telerik:StyleManager.Theme="Office_Silver" Name="errorsGridView" AutoGenerateColumns="False" CanUserSortColumns="False" IsFilteringAllowed="False" ShowGroupPanel="False"&gt;
      &lt;telerik:GridViewDataControl.Columns&gt;
          &lt;telerik:GridViewDataColumn IsReadOnly="True" UniqueName="{x:Null}" Header="Severity" DataMemberBinding="{Binding severity}" /&gt;
          &lt;telerik:GridViewDataColumn IsReadOnly="True" UniqueName="{x:Null}" Header="Description" DataMemberBinding="{Binding description}" /&gt;
      &lt;/telerik:GridViewDataControl.Columns&gt;
  &lt;/telerik:GridViewDataControl&gt;
  </code></pre>
  
  <p>I would like the entire Background color of each row to be bound to by the ErrorMessage.background property.  How do I do this?  Thanks in advance!</p>