How to apply CSS to Radio Button?

I am on Xamarin Forms 3.2 and using CSS for styling native control.  I tried SfRadioButton but does not find any documentation on how to apply CSS style to it.   Any help would be appreciated.  Thank you.

3 Replies

PA Paul Anderson S Syncfusion Team October 16, 2018 07:23 AM UTC

Hi Albert, 
 
Greetings from Syncfusion. 
 
We have prepared a sample using SfRadoButton applying CSS styles to the control. Please have the sample from the below link and let us know if it helps you. 
 
 
Please let us know if you have any concern. 
 
Regards, 
Paul Anderson 



AK Albert K October 16, 2018 08:26 AM UTC

Thank you for the reply.  May I know is there any documentation on the naming of the CSS element as well as other elements like selected color, unselected color, etc?.  Thank you again.


PA Paul Anderson S Syncfusion Team October 17, 2018 08:10 AM UTC

Hi Albert, 
 
Currently we don't have custom properties support in CSS style and also, we are unable to consider as a feature request 
  
  
On further analysis we found that in framework, they mapped as like 
  
[assembly: StyleProperty("background-color", typeof(VisualElement), nameof(VisualElement.BackgroundColorProperty))] 
  
But the StylePropertyAttribute is kept as internal. So we cannot provide the support for custom properties of our controls. 
  
 
Regards, 
Paul Anderson  


Loader.
Up arrow icon