How to customize day,month and year

3 posts, 1 answers
  1. Michael
    Michael avatar
    4 posts
    Member since:
    Sep 2012

    Posted 14 Aug 2013 Link to this post

    Hi,

    I'm trying to style the date selector to change the background color for day, month and year, but I'm not having any success. The documentation says:
    • Day List - changing its appearance is done by styling the DayList control inside the template of the RadDateSelector control.
    • Month List - changing its appearance is done by styling the MonthList control inside the template of the RadDateSelector control.
    • Year List - changing its appearance is done by styling the YearList control inside the template of the RadDateSelector control.

    http://www.telerik.com/help/windows-phone/raddateselector-styles-and-templates-styling-raddateselector.html

    But I cannot find the list anywhere?

    Can you guide me in the right direction?

    Best regards
    Michael

  2. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 14 Aug 2013 Link to this post

    Hi Michael,

    Thank you for contacting us. Please take a look at the attached project which contains all the necessary styles for restyling RadDateSelector.
    If you examine the project, you will see that the style that is being applied to the RadDateSelector (x:Key="DateSelectorStyle") has 3 DateTimeList controls. Each DateTimeList's Style is set to DateTimeListStyle (Style="{StaticResource DateTimeListStyle}"). In DateTimeListStyle, there's a property ItemStyle which is set to DateTimeListItemStyle. DateTimeListItemStyle is what you should be editing if you want to change the appearance of each item in RadDateSelector.

    Give it a try and let me know how it goes.

    Regards,
    Kiril Stanoev
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Michael
    Michael avatar
    4 posts
    Member since:
    Sep 2012

    Posted 15 Aug 2013 Link to this post

    Thank you  - it works perfectly.

    /Michael
Back to Top