Set colors for RadCheckBox when IsEnabled = false?

1 Answer 90 Views
CheckBox
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
Larry asked on 13 Feb 2023, 04:33 AM

As the title suggests, how do I set colors for RadCheckBox when IsEnabled = false?

At the moment, this is a WinUI question only.

Thanks,

-ldl-

 

Maria
Telerik team
commented on 15 Feb 2023, 06:04 PM

Hello Larry,

I am researching the case for applying visual state when the control is disabled to the RadCheckBox control on WinUI platform. I will send more information on this by the end of this week.

Thank you for your understanding.

Regards,
Maria
Progress Telerik

Larry
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 15 Feb 2023, 10:55 PM

Thanks!

1 Answer, 1 is accepted

Sort by
0
Maria
Telerik team
answered on 16 Feb 2023, 03:56 PM

Hello Larry,

I have a solution which I could suggest to you. You could change the colors of the disabled state of the RadCheckBox control when you set it in our control template in the visual states you want. I am sending you a sample project. The control template is inside Windows/App.xaml file. I have also attached a video of the behavior.

Regards,
Maria
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Larry
Top achievements
Rank 1
Iron
Iron
Veteran
commented on 11 Mar 2023, 02:17 AM

Just fyi, I wasn't able to affect the 'not enabled' checkbox - other than giving it a very thick border to help make it visible. In my scenario, the checkbox starts off disabled so there is no interaction possible. As I recall, the sample set the symbol color. Since my checkboxes are disabled, there is no symbol. And I was unable to change any other color or the background. No worries though, my workaround is ok.
Tags
CheckBox
Asked by
Larry
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Maria
Telerik team
Share this question
or