enisn / Xamarin.Forms.InputKit

CheckBox, Radio Button, Labeled Slider, Dropdowns etc.
MIT License
588 stars 100 forks source link

BoxBackgroundColor equivalent for RadioButton? #263

Closed greg84 closed 1 year ago

greg84 commented 2 years ago

With a CheckBox I can set BoxBackgroundColor to change the colour of the background of the box.

Is there a way to do something similar with a RadioButton? I would like to change the colour of the background inside the circle.

enisn commented 2 years ago

You can set your custom image to achieve that, RadioButton doesn't have that kind of feature at the moment.

    <input:RadioButton Text="Option 1" CircleImage="my_custom_circle_with_background.png" />
enisn commented 2 years ago

This image is used at the moment: https://github.com/enisn/Xamarin.Forms.InputKit/blob/develop/src/InputKit.Maui/Shared/Resources/circle.png

I'll convert all the resources to svg format soon. After that, it'll be possible to set background color separately

greg84 commented 2 years ago

Thanks @enisn! Not sure why I didn't think of that. Makes perfect sense!