We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Rich text box expands and does not auto resize

Hey guys, is there a way to have the rich text box collapse to as small as the content within? As you type it would get bigger.  I'm using the Continuous LayoutType.

How it currently looks:

This is how I want it to be:

Here is my code:
     
     <sfr:SfRichTextBoxAdv Name="uiRichTextBox"
                           ContentChanged="UiRichTextBox_ContentChanged"
                           LayoutType="Continuous" 
                           BorderBrush="Gray"
                           Background="White"
                           BorderThickness="{ThemeResource TextControlBorderThemeThickness}"
                           Width="280"/>



1 Reply

RT Ramya Thirugnanam Syncfusion Team December 31, 2018 11:19 AM UTC

Hi James, 
 
Thanks for contacting Syncfusion support. 
 
SfRichTextBoxAdv does not have options to resize its height based on its content. But, it can be achieved at sample level. For further details, Please refer to the following forum and sample.

Forum link: 
https://www.syncfusion.com/forums/131119/mvvm-control-height 

Sample link:
Sample.zip 
 
Regards, 
Ramya T 


Loader.
Up arrow icon