title: WPF DataGrid cell background using binding
body: <p>I have a DataGrid with column named Color.</p>
  
  <pre><code>&lt;DataGridTextColumn Header="Color" Binding="{Binding MyColor.Percentage}"/&gt;
  </code></pre>
  
  <p>The ItemSource of DataGrid is some object with <code>MyColor</code> property inside.</p>
  
  <pre><code>public class MyColor
  {
      Color Background { get; set; }
      int Percentage { get; set; }
  }
  </code></pre>
  
  <p>When ItemSource is set column auto-fills with values of <code>Percentage</code>. Now I'd like to set background of each cell in this column to color corresponding to <code>MyColor.Color</code> property. Is there a way to do it using binding? Something like</p>
  
  <pre><code>Background="{Binding MyColor.Color}"
  </code></pre>
  
  <p><code>Color</code> property is in html format #XXXXXXXX (is it called html format?).</p>