DateTimePickerButton visual states

5 posts, 1 answers
  1. Filip
    Filip avatar
    3 posts
    Member since:
    Jan 2012

    Posted 06 Oct Link to this post

    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

  2. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    137 posts

    Posted 06 Oct Link to this post

    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
  3. Filip
    Filip avatar
    3 posts
    Member since:
    Jan 2012

    Posted 07 Oct in reply to Lance | Tech Support Engineer, Sr. Link to this post

    Hi Lance,

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

    F.

  4. Answer
    Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 12 Oct Link to this post

    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
  5. Filip
    Filip avatar
    3 posts
    Member since:
    Jan 2012

    Posted 12 Oct in reply to Ivaylo Gergov Link to this post

    Thanks, it worked.
Back to Top