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
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.