Solved

WPF  How to style the DateTimePicker

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

803 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