This is a migrated thread and some comments may be shown as answers.

Styling RadDatePicker

3 Answers 51 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Saurabh Nandu
Top achievements
Rank 1
Saurabh Nandu asked on 22 Apr 2011, 10:51 AM
Hi, 
I am trying to style the RadDatePicker Control in Expression Blend. When i create a copy of the style into the same usercontrol, it works fine, but when i try to create a new resource Dictionary and open the style, it wont let me to.....
It keeps on throwing error...
------------------------------------------------------------------
Stack Trace
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary'2.Insert(TKey, TValue, Boolean add)

An item with the same key has already been added.
------------------------------------------------------------------

I did try out rest of the controls. They are working fine and am able to alter their styles. But whenever i try to open up the datepicker
it throws me the above error.
Firstly, i thought may be a key would be existing same as the new one. But i did try it to open in a new project several times but still no success.

Please let me know as to how should i proceed..

3 Answers, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 26 Apr 2011, 11:10 AM
Hello Saurabh,

Thank you for the feedback. Indeed, such behavior exists. It has been logged and will be further investigated. We are sorry if currently the issue causes any inconvenience.

If you do not need to view the template structure of the RadDatePicker control, you can simply Rebuild the project and continue a normal customization process as you will have access to needed resources. If this is not the case, I would suggest that you make your customizations in place (i.e. in the same UserControl) and, when done, move them in a separate resource dictionary.

Regards,
Dani
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Bkerby
Top achievements
Rank 1
answered on 13 Sep 2012, 04:33 PM
Any update on this issue?  I'm trying to set a visual state for the background of the DatePicker but i'm unable to edit the style in blend.  Is there a workaround to this?
0
Masha
Telerik team
answered on 14 Sep 2012, 11:49 AM
Hello Brian,

After you generate the template of RadDatePicker with Expression Blend find
<SolidColorBrush x:Key="PickerBackground_Normal" Color="#FFFFFFFF"/>
and modify it with the color of your choice. 

Hope this helps.

Greetings,
Maria
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

Tags
DatePicker
Asked by
Saurabh Nandu
Top achievements
Rank 1
Answers by
Dani
Telerik team
Bkerby
Top achievements
Rank 1
Masha
Telerik team
Share this question
or