How to get content height for read-only RichTextEditor in MAUI

Hello,

We have previously used the RichTextEditor in Xamarin, but only as a viewer (without a toolbar), displayed inside a Grid. In Xamarin, we simply handled the PropertyChanged event on HtmlText and then set the Height to ContentHeightRequest.

In MAUI, it seems that ContentHeightRequest no longer exists, and all measure routines return 0 for the height. We have EnableAutoSize set to true, but this property appears to be intended primarily for text input, whereas our field is read-only.

Could you please advise how we can achieve the equivalent of ContentHeightRequest for a read-only RichTextEditor in MAUI?

Thank you in advance for your help.

Best regards,



1 Reply

DR Dhanaraj Rajendran Syncfusion Team September 10, 2025 12:54 PM UTC

Hi Bjorn,


We’ve reviewed your query and attempted to reproduce the scenario using a read-only RichTextEditor in .NET MAUI with EnableAutoSize set to true and HTML content applied. In our tests, the editor rendered as expected, and the height adjusted appropriately to the content.


A screenshot of a computer

AI-generated content may be incorrect.

To assist further, we’ve attached a sample project and output for your reference. Could you kindly review the sample and let us know if there are any specific steps or configurations we might have missed that could help us replicate the issue more accurately?

Your feedback will help us investigate this further and provide a more targeted solution.


Regards,

Dhanaraj Rajendran.


Attachment: RichTextEditorSample_b9f273ca.zip

Loader.
Up arrow icon