DataType design assumes the existence of an x:Type directive, like this:
<DataTemplate DataType="{x:Type system:DateTime}"> <Grid Background="Aqua"> <TextBlock Text="{Binding Day}" Height="30" Width="100" HorizontalAlignment="Center" /> </Grid> </DataTemplate>
See MSDN for more details.
source share