Link to home
Start Free TrialLog in
Avatar of JElster
JElsterFlag for United States of America

asked on

WPF How to style the DateTimePicker

I'm using the DateTimePicker from the WPFTool kit. How Can I style it? Need to change the Month background and font

This what I have so far... thx

  <!-- DatePicker -->
            <Style x:Key="DatePickerStyle"  TargetType="{x:Type my:DatePicker}">
                <Setter Property="Foreground" Value="#FF333333" />
                <Setter Property="IsTodayHighlighted" Value="True" />
                <Setter Property="SelectedDateFormat" Value="Short" />
                <Setter Property="Background" Value="Transparent" />
                <Setter Property="Padding" Value="3,2,0,2"/>
                <Setter Property="BorderBrush">
                    <Setter.Value>
                        <LinearGradientBrush StartPoint="0 0" EndPoint="0 1">
                            <GradientStop Offset="0"   Color="#FFFFC0" />
                            <GradientStop Offset="0.5" Color="#FFE0B0" />
                            <GradientStop Offset="1"   Color="#FFD0A8" />
                        </LinearGradientBrush>
                    </Setter.Value>
                </Setter>
       

            </Style>
ASKER CERTIFIED SOLUTION
Avatar of Rahul Agarwal
Rahul Agarwal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JElster

ASKER

I saw this article but I still don't know how to just style the month in the calendar.
These examples don't use a datepicker they show the calendar.
thx
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial