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