title: Create Common DataGridTemplateColumn in WPF
body: <p>I need to create a common <code>DataGridTemplateColumn</code>, so that I can use it across my application with different objects and properties.</p>
  
  <p>here is some sample code, I use in my project</p>
  
  <pre><code>&lt;DataGridTemplateColumn Width="100*"&gt;
      &lt;DataGridTemplateColumn.CellTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;TextBlock Text="{Binding Path=Age}"/&gt;
          &lt;/DataTemplate&gt;
      &lt;/DataGridTemplateColumn.CellTemplate&gt;   
      &lt;DataGridTemplateColumn.CellEditingTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;TextBox Text="{Binding Path=Age}"/&gt;
          &lt;/DataTemplate&gt;
      &lt;/DataGridTemplateColumn.CellEditingTemplate&gt;
  &lt;/DataGridTemplateColumn&gt;
  </code></pre>
  
  <p>I need a generic version of the code so that I can place the <code>DataTemplate</code> in <code>app.xaml</code> and reference it in my code</p>