Solved

WPF  How to style the DateTimePicker

Posted on 2011-03-14
3
5,365 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

929 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now