3 Answers, 1 is accepted
Hello Larry,
You would need to copy the default template and styles of the UWP CheckBox to the UWP project app resources and modify the required colors directly there. By default, the disabled colors are set to the system disabled brushes.
Please find attached a sample app showing the approach - just copy the Style targeting ExtendedCheckBox into your App.xaml file inside the UWP project, add the needed telerik namespace:
xmlns:telerik="using:Telerik.XamarinForms.PrimitivesRenderer.UWP"
And modify the colors inside UncheckedDisabled and CheckedDisabled visual states.
I hope I was of help.
Regards,
Yana
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/.
Thank you, I'm sure this is exactly what I need. At the risk of asking a dumb question... :)
How would I have gotten the default template and styles of the Xamarin Forms UWP CheckBox for myself?
Hi Larry,
I am afraid for the time being we do not ship separately the UWP styles and templates. In general, we provide styling API which should be enough to style the controls. In the case with disabled checkbox color - usually users would prefer relying on the native styling (coming from the target platform), that's the reason we do not expose it as a separate property. If this becomes a common requirement, we'll consider exposing it as a style property.
In the meantime, if you have any additional questions on styling the CheckBox, or any other control, we'll be glad to help.
Regards,
Yana
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/.