DatePicker Icon

Apr 27, 2009 at 11:10 AM
Hi,

Does anyone know how to modify the DatePicker Icon? The '15' icon does not suit for me, I would prefer a 'calendar' one.
Thanks for your help.

Clement
Coordinator
May 5, 2009 at 10:02 PM
You will have to re-template the DatePicker Control. Inside the template found in generic.xaml you will find an element with the key DropDownButtonTemplate. This is the Template for the Button you have mentioned. Here you can completely change its appearance to whatever suits you needs.... but a simple solution that may suffice for your scenario is to remove one particular element. In the template you will see a Path between the Rectangle and Ellipse. If you remove this path, you will remove the "15".

-Eric, MSFT
May 6, 2009 at 2:46 PM
Thanks,

This helped a lot !

Clement


From: [email removed]
To: [email removed]
Date: Tue, 5 May 2009 14:02:50 -0700
Subject: Re: DatePicker Icon [wpf:54575]

From: ericf
You will have to re-template the DatePicker Control. Inside the template found in generic.xaml you will find an element with the key DropDownButtonTemplate. This is the Template for the Button you have mentioned. Here you can completely change its appearance to whatever suits you needs.... but a simple solution that may suffice for your scenario is to remove one particular element. In the template you will see a Path between the Rectangle and Ellipse. If you remove this path, you will remove the "15".

-Eric, MSFT


Souhaitez vous  « être au bureau sans y être » ? Oui je le veux !