How to wrap text in .NET MAUI RadioButton?
The .NET MAUI RadioButton supports text wrapping using LineBreakMode property. Below is the updated declaration code for this feature.
XAML:
<syncfusion:SfRadioButton Text="By clicking here, I state that I have read and understood the terms and conditions." LineBreakMode="WordWrap"/>
C#:
SfRadioButton radioButton = new SfRadioButton();
radioButton.Text = "By clicking here, I state that I have read and understood the terms and conditions.";
radioButton.LineBreakMode = LineBreakMode.WordWrap;
Output:
Download the complete sample on GitHub
Conclusion
I hope you enjoyed learning how to wrap the text in .NET MAUI RadioButton.
You can refer to our .NET MAUI RadioButton feature tour page to learn about its other groundbreaking features and also explore our .NET MAUI RadioButton documentation to understand how to present and manipulate data.
For current customers, check out our .NET MAUI components from the License and downloads page. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI RadioButton and other .NET MAUI components.
Please let us know in the following comments section if you have any queries or require clarifications. You can also contact us through our support forums, Direct - Trac, or feedback portal. We are always happy to assist you!