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 (source):
<Grid.Resources>
<DataTemplate x:Key="DateTemplate">
<TextBox IsReadOnly="False" Text="{Binding TestDate}"></TextBox>
</DataTemplate>
<DataTemplate x:Key="EditingDateTemplate">
<DatePicker SelectedDate="{Binding TestDate}" />
</DataTemplate>
</Grid.Resources>
<DataGridTemplateColumn Header="Test Date" IsReadOnly="False" CellTemplate="{StaticResource DateTemplate}" CellEditingTemplate="{StaticResource EditingDateTemplate}" Width="120">