My WPF application runs on computers installed in police cars. As such, it needs to have a "night mode" that has more subdued colors that don't hurt the officer's eyes in the dark.
My application has a search screen which contains a couple of RadDateTimePicker controls. I've made a copy of the default template for the RadCalendar control that is contained in the RadDateTimePicker control's drop down area and I've been changing the XAML so it uses dynamic resource brushes defined in merged dictionaries. The switch to night mode and back to day mode is used by changing the merged dictionary to one that has other brushes with the same names but different colors.
My problem is in the CalendarButton controls that make up the calendar. They contain a Telerik ButtonChrome control which does not have any color properties. When I open my application and use Snoop to look at the drop down after opening it, I can see that the ButtonChrome control contains a grid that contains a number of Border controls in it. Those Border controls are not in the XAML; they must be created by the ButtonChrome.
The problem is that the colors used by the ButtonChrome don't work with my color scheme. I have to use a dark background with lighter colors in the foreground for night mode. The colors in that ButtonChrome are just the opposite. There's no obvious way using XAML that I can change the colors used by the ButtonChrome.
Is there any way I can change the colors used without having to write my own ButtonChrome class?
I am using RadControls for WPF version 2013.1.220.45.
My application has a search screen which contains a couple of RadDateTimePicker controls. I've made a copy of the default template for the RadCalendar control that is contained in the RadDateTimePicker control's drop down area and I've been changing the XAML so it uses dynamic resource brushes defined in merged dictionaries. The switch to night mode and back to day mode is used by changing the merged dictionary to one that has other brushes with the same names but different colors.
My problem is in the CalendarButton controls that make up the calendar. They contain a Telerik ButtonChrome control which does not have any color properties. When I open my application and use Snoop to look at the drop down after opening it, I can see that the ButtonChrome control contains a grid that contains a number of Border controls in it. Those Border controls are not in the XAML; they must be created by the ButtonChrome.
The problem is that the colors used by the ButtonChrome don't work with my color scheme. I have to use a dark background with lighter colors in the foreground for night mode. The colors in that ButtonChrome are just the opposite. There's no obvious way using XAML that I can change the colors used by the ButtonChrome.
Is there any way I can change the colors used without having to write my own ButtonChrome class?
I am using RadControls for WPF version 2013.1.220.45.