Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calendar button alignment issue in DateTimePicker in WPF

Tags:

c#

wpf

I'm using Both WPFToolkit and WPFExtendedtoolkit dll in our project to get DateTimePicker. But when the calendar pops down the Calendar button is not coming properly, half of the button are been hided.

Any help would be appreciated.

like image 542
Abhilash Avatar asked Jan 25 '26 12:01

Abhilash


1 Answers

This may be a late answer. But hope it helps others having same problem. I think you have a style defined for Button in your custom styles. Just add the following style to your custom styles.

<Style TargetType="{x:Type DatePicker}">
    <Style.Resources>
        <Style TargetType="Button"/>
    </Style.Resources>
</Style>
like image 81
Abhishek Avatar answered Jan 28 '26 03:01

Abhishek



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!