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

DateTimePickerButton visual states

4 Answers 38 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Filip
Top achievements
Rank 1
Filip asked on 06 Oct 2016, 12:10 PM

Hi,

I am trying to change color of RadDatePicker when it comes to focused state. I usually get in the focus state by pressing the Tab key or after selecting a date value from the picker - then the background color of "DateTimePickerButton" becomes blue (see attachment).

I already have tried to change it using a UserThemeResources or by editing a ControlTemplate I had found here in forum. Unfortunately, all attempts without any luck. I can change BorderBrush, ForegroundBrush but Background stays unchanged.

My app uses multiple form controls, including a system ComboBox, where I run into same issue. Happily I was able to resolve the issue by setting "ComboBoxSelectedBackgroundThemeBrush". I can't find any related brush name in http://docs.telerik.com/windows-universal/controls/raddatepicker-and-radtimepicker/styling/raddatetimepickers-teleriknamedbrushes.

Would you please be so kind and tell me name of the "blue background focused brush" or recommend a workaround?

Thanks in advance

4 Answers, 1 is accepted

Sort by
0
Lance | Manager Technical Support
Telerik team
answered on 06 Oct 2016, 06:43 PM
Hi Filip,

You can find all the Telerik named brushes for the RadDatePicker and RadTimePicker here. Specifically, you're looking for the Focused Sate brush names.

If you want to explicitly set a brush in a style, see our example here.

Let us know if you have any further trouble.

Regards,
Lance | Tech Support Engineer, Sr.
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Filip
Top achievements
Rank 1
answered on 07 Oct 2016, 09:13 AM

Hi Lance,

I have tried to set "TelerikDateTimePickerItemFocusedBackgroundBrush" to gray, but without success. The background of the control, when focused, remains default blue.

F.

0
Accepted
Ivaylo Gergov
Telerik team
answered on 12 Oct 2016, 11:12 AM
Hello Filip,

It seems that this brush has been renamed to TelerikDateTimePickerSelectedBackgroundBrush.

Please, let me know if this helps.

Regards,
Ivaylo Gergov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Filip
Top achievements
Rank 1
answered on 12 Oct 2016, 04:56 PM
Thanks, it worked.
Tags
DatePicker
Asked by
Filip
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Filip
Top achievements
Rank 1
Ivaylo Gergov
Telerik team
Share this question
or