Solved

WPF  How to style the DateTimePicker

Posted on 2011-03-14
3
5,572 Views
Last Modified: 2013-11-12
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>
0
Comment
Question by:JElster
3 Comments
 
LVL 13

Accepted Solution

by:
agarwalrahul earned 125 total points
ID: 35136051
0
 
LVL 1

Author Comment

by:JElster
ID: 35136843
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
0
 
LVL 11

Assisted Solution

by:Sudhakar Pulivarthi
Sudhakar Pulivarthi earned 125 total points
ID: 35148205
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question