How to Customize Content Spacing in .NET MAUI RadioButton?
The .NET MAUI RadioButton allows you to adjust the spacing between the radio button and its text using the ContentSpacing property. The declaration code has been updated as follows:
XAML
<syncfusion:SfRadioButton Text="Papaya" ContentSpacing="15"/>
C#
SfRadioButton radioButton = new SfRadioButton();
radioButton.Text = "Papaya";
radioButton.ContentSpacing = 15;
Output:
Download the complete sample from the GitHub.
Conclusion
I hope you enjoyed learning how to customize the content spacing in .NET MAUI RadioButton.
You can refer to our .NET MAUI Radio Button feature tour page to know about its other groundbreaking features and Documentation, and how to quickly get started for configuration specifications. Explore our .NET MAUI Radio Button example to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac or feedback portal. We are always happy to assist you!