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

How to customize day,month and year

2 Answers 60 Views
DatePicker and DateSelector
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 14 Aug 2013, 12:57 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 14 Aug 2013, 02:01 PM
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.
0
Michael
Top achievements
Rank 1
answered on 15 Aug 2013, 08:10 AM
Thank you  - it works perfectly.

/Michael
Tags
DatePicker and DateSelector
Asked by
Michael
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Michael
Top achievements
Rank 1
Share this question
or