Centering DatePicker control

sDev picture sDev · Oct 7, 2009 · Viewed 7.8k times · Source

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.

Answer

svick picture svick · May 23, 2011
<Style TargetType="DatePickerTextBox">
    <Setter Property="VerticalAlignment" Value="Center" />
    <Setter Property="Padding" Value="2" />
</Style>