RadScheduleView - NavigationHeader colors

1 Answer 24 Views
ScheduleView
Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
Ohad asked on 15 May 2022, 09:17 AM

Hi, I would like to help how to change these colors from yellow to my colors

Thanks for the helpers

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 16 May 2022, 11:03 AM

Hello Ohad,

To achieve your requirement, you can extract and modify the ControlTemplate of RadScheduleView and the styles/templates of few of the controls inside the template.

The buttons for the view definitions (Day, Week, Month, ect.) are actually ListBoxItem objects and the container that holds them is a ListBox control. To modify this you will need to find the Styles that target the ListBox and the ListBoxItems and modify them. The selected and mouse over states in the Office_Black theme (the one from the screenshot) are controlled via VisualState objects that animate background. This what you will need to change. Then, you can assign the modified styles to the ListBox in the ControlTemplate of RadScheduleView.

The previous and next buttons, on both side of the calendar button, are RadButtons inside of the ControlTemplate of RadScheduleView. To change their behavior, you will need to modify their ControlTemplates, like with the ListBox items. You should change the VisualStates associated with the pressed and mouse over states. 

You can see where you find the styles/templates of the Telerik controls in the following article.

In case you decide to use a newer theme (Material and later), you can take advantage of the ThemeHelper class which will allow you to set the mouse over, pressed, checked, etc., colors of the controls without extracting their templates. 

I hope this information helps.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ScheduleView
Asked by
Ohad
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or