Styling RadDatePicker

4 posts, 0 answers
  1. Saurabh Nandu
    Saurabh Nandu avatar
    104 posts
    Member since:
    Oct 2006

    Posted 22 Apr 2011 Link to this post

    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..
  2. Dani
    Dani avatar
    848 posts

    Posted 26 Apr 2011 Link to this post

    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.

    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
  3. Bkerby
    Bkerby avatar
    9 posts
    Member since:
    Apr 2012

    Posted 13 Sep 2012 Link to this post

    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?
  4. Masha
    Masha avatar
    355 posts

    Posted 14 Sep 2012 Link to this post

    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.

    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.

Back to Top