I want to use padding to leave a space between the radio button and the text using the sfRadioButton control.
I currently have this code that does exactly that, but with MAUI's default RadioButton control.
code .cs
public class CustomRadioButton : RadioButton
{
}
public App()
{
RadioButtonHandler.Mapper.AppendToMapping("MyCustomRadioButton", (handler, button) =>
{
if (button is not CustomRadioButton) return;
var control = handler.PlatformView;
#if ANDROID
control.SetPadding(40, 0, 0, 0);
#elif IOS || MACCATALYST
Console.WriteLine("CustomRadioButton not implement for iOS");
#elif WINDOWS
Console.WriteLine("CustomRadioButton not implement for Windows");
#endif
});
}
usage in xaml
<renderers:CustomRadioButton Content="Theme" />
What I want is to achieve the same effect but with the sfRadioButton control. How could I achieve this?
And if they add that property to the control it would be excellent