Wrapping text in RadButton

1 Answer 189 Views
Button
Todd
Top achievements
Rank 1
Todd asked on 31 Dec 2021, 07:44 PM

Is there any built-in ability to wrap the text in a RadButton for Xamarin Forms?

Specifically, I am trying to enable text wrapping on iOS. I am aware that you can create a Custom Renderer to achieve this by setting the underlying iOS `LineBreakMode = UILineBreakMode.WordWrap`, but I was hoping RadButton would handle this without the need for additional customizations.

Please let me know if I've missed anything. Or if not, it would be great to know if this has been considered for future releases. Thanks!

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 03 Jan 2022, 08:02 AM

Hello Todd,

RadButton does not provide a property you can set in Xamarin.Forms to achieve this scenario. The approach you can use for iOS is a custom renderer. 

We do not have a feature request about Text wrap for RadButton in our feedback portal. I have logged such a request on your behalf https://feedback.telerik.com/xamarin/1548060-button-ios-provide-a-property-to-wrap-the-text-in-xamarin-forms. The team will review it and change its title. Currently its status is "Under Review". 

Regards,
Didi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Todd
Top achievements
Rank 1
commented on 06 Jan 2022, 07:36 PM

Thanks for the feedback, Didi. Good to know. And thanks for proactively creating a feature suggestion.

Ultimately, I did go the route of using a custom renderer, but at that point, I didn't need RadButton. I'll track the feature request for any changes. It does seem like a relatively trivial enhancement for RadButton that would give it more value over the out-of-the-box controls. ¯\_(ツ)_/¯

Tags
Button
Asked by
Todd
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or