Solved

WPF  How to style the DateTimePicker

Posted on 2011-03-14
3
5,246 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
Comment Utility
0
 
LVL 1

Author Comment

by:JElster
Comment Utility
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
Comment Utility
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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

11 Experts available now in Live!

Get 1:1 Help Now