This question is locked. New answers and comments are not allowed.
Hi,
I have a requirement to display the header of the datetimepicker as "December 2011" instead of "December - 2011".
I went through the style of CalendarHeaderButton, in which i found the below 2 lines of code which is used to display the header in the control,
I have a requirement to display the header of the datetimepicker as "December 2011" instead of "December - 2011".
I went through the style of CalendarHeaderButton, in which i found the below 2 lines of code which is used to display the header in the control,
<
TextBlock x:Name="BackgroundText" Foreground="{StaticResource HeaderTextBackground}" FontWeight="{StaticResource HeaderTextFontWeight}" HorizontalAlignment="Center" Margin="0 2 0 0" Text="{TemplateBinding Content}" VerticalAlignment="Center"/>
<TextBlock x:Name="ForegroundText" Foreground="{StaticResource HeaderTextForeground}" FontWeight="{StaticResource HeaderTextFontWeight}" HorizontalAlignment="Center" Margin="0 1 0 1" Text="{TemplateBinding Content}" VerticalAlignment="Center"/>
Since TemplateBinding is used here, i am not able to use a Converter to achieve this. Is there any alternate way to do this?
Regards
N.Surendra Prasad