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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Rich text box expands and does not auto resize

Thread ID:

Created:

Updated:

Platform:

Replies:

141688 Dec 27,2018 02:49 PM UTC Dec 31,2018 11:19 AM UTC UWP 1
loading
Tags: SfRichTextBoxAdv
James Esh
Asked On December 27, 2018 02:49 PM UTC

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"/>



Ramya Thirugnanam [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;