2
votes

How can i change the background color of the header section of the WPF toolkit datepicker control? Since the Default color is dark blue and the foreground is in black, it seems a bit difficult to read the text.

Thanks in advance.

3

3 Answers

1
votes

I was able to get the default template of the datepicker control using Blend. Just needed to change the style to the appropriate color and set the datepicker's Calander style to it.

0
votes

This color is set with the CalendarBGBrush in the first Grid inside the CalendarItem template. The brush is a gradient with a hard stop at the top. This is where the blue color is. You'll have to make your own template for the calendar and then you can replace or adjust this brush.