Centering DatePicker control

alignment, datepicker, wpf, wpftoolkit

Solution

<Style TargetType="DatePickerTextBox">
    <Setter Property="VerticalAlignment" Value="Center" />
    <Setter Property="Padding" Value="2" />
</Style>

Problem

I am using datepicker control from wpf toolkit. I need to center align the content in datepicker control. How can I achieve this? Tried VerticalContentAlignment="Center". It didn't work.

Original source