title: Binding DataGridTemplateColumn
body: <p>Seems I've hit a wall trying to use DataTemplates on my DataGrid. What I'm trying to do is to use one template to show two rows of text for each cell. But it doesn't seem to be possible to Bind the column in any way. </p>
  
  <p>Following code hopefully shows what I wish to do. Note the Binding for each column: there is no such thing for a template column, and as such, this xaml couldn't possibly work.</p>
  
  <pre><code>&lt;Window.Resources&gt;
      &lt;DataTemplate x:Key="DoubleField"&gt;
          &lt;StackPanel&gt;
              &lt;TextBlock Text="{Binding Value1}"/&gt;
              &lt;TextBlock Text="{Binding Value2}"/&gt;
          &lt;/StackPanel&gt;
      &lt;/DataTemplate&gt;
  &lt;/Window.Resources&gt;
  
  &lt;DataGrid&gt;
      &lt;DataGrid.Columns&gt;
          &lt;DataGridTemplateColumn CellTemplate="{StaticResource DoubleField}" Binding="{Binding Title}"/&gt; // &lt;- Binding does not exist for templatecolumn, I only wish it did
          &lt;DataGridTemplateColumn CellTemplate="{StaticResource DoubleField}" Binding="{Binding Price}"/&gt; // &lt;- Binding does not exist for templatecolumn, I only wish it did
          &lt;DataGridTemplateColumn CellTemplate="{StaticResource DoubleField}" Binding="{Binding Stuff}"/&gt; // &lt;- Binding does not exist for templatecolumn, I only wish it did
      &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid&gt;
  
  class MyListItem {
      class DoubleItem {
          string Value1 { get; set; }
          string Value2 { get; set; }
      }    
      DoubleItem Title { get; set; }
      DoubleItem Price { get; set; }
      DoubleItem Stuff { get; set; }
  }
  </code></pre>
  
  <p>Am I doomed to copy the whole DataTemplate to every column just to have a different binding on each copy? Surely there a nice way to go around this? Or am I just missing something blindingly obvious again? </p>