title: WPF datepicker not showing calendar next to textbox
body: <p>I have a WPF DataGrid bound to a ViewModel which has a date field. I wanted to change date field editing from using a TextBox to Calendar or DatePicker instead. I followed the below link exactly. But, for some reason, I am not able to see the Calendar next to the DatePicker's TextBox. It's confusing. I am copy pasting my code below (<a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.datagridtemplatecolumn%28v=VS.100%29.aspx" rel="nofollow">source</a>):</p>
  
  <pre><code>&lt;Grid.Resources&gt;            
      &lt;DataTemplate x:Key="DateTemplate"&gt;
          &lt;TextBox IsReadOnly="False" Text="{Binding TestDate}"&gt;&lt;/TextBox&gt;
      &lt;/DataTemplate&gt;
  
      &lt;DataTemplate x:Key="EditingDateTemplate"&gt;
          &lt;DatePicker SelectedDate="{Binding TestDate}" /&gt;
      &lt;/DataTemplate&gt;
  &lt;/Grid.Resources&gt;
  
   &lt;DataGridTemplateColumn Header="Test Date" IsReadOnly="False" CellTemplate="{StaticResource DateTemplate}" CellEditingTemplate="{StaticResource EditingDateTemplate}" Width="120"&gt;
  </code></pre>