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

SfRichTextBoxAdv fit size to Window or UserControl size

Thread ID:





125161 Jul 26,2016 06:28 PM UTC Jul 29,2016 06:47 AM UTC WPF 6
Tags: SfRichTextBoxAdv
David García
Asked On July 26, 2016 06:28 PM UTC


I having problems making this control to fit the content control it is inside. Whatever I do only makes the control the width of the Ribbon associated and the height small, unless I specify a width and a height.

I attached a file that shows how the control is shown, with the page view not even filling the control size unless the width and height of the UserControl or Window is specified.

Is there a way to make the control adaptable to the window/usercontrol size?

Thanks in advance.

Emmima Josephine Jeyapaul [Syncfusion]
Replied On July 27, 2016 12:53 PM UTC

Hi David,

Thank you for contacting Syncfusion support

We are not able to reproduce the issue “SfRichTextBoxAdv fit size to Window or User Control size” at our end. Please find the sample link and video demo from the below link.
Sample Link: 
Video Demo: 

Could you please modify the sample to reproduce the mentioned issue and share us the same? So that we can analyze it further and provide you the appropriate solution at the earliest.

Also please provide information regarding Essential Studio version you are using?


David García
Replied On July 27, 2016 02:10 PM UTC

Hi, Thanks for the quick response.

I have modified the example to show the problem, but now I think could because the Usercontrol instead being inside a Grid control is inside a ScrollViewer that works different, even in the example still fills horizontally but not vertically.

The only change I have made was Change the Grid in the MainWindow.xaml for a ScrollViewer.

Thanks in advance

Attachment: Localization730648597_f8265357.zip

David García
Replied On July 27, 2016 02:20 PM UTC

Hi again,

I reply again as forget to add the Essential Studio version I use:


Venkatesan Mani [Syncfusion]
Replied On July 28, 2016 03:05 PM UTC

Hi David,

Thank you for your update.

The SfRichTextBoxAdv control will be displayed with default size (200 x 200), when placed in controls/panels which will measure it with infinity. For example, ScrollViewer, StackPanel and Grid with Row.Height="Auto" or Column.Width="Auto" will measure with infinity. So, instead of placing SfRichTextBoxAdv inside ScrollViewer, kindly use it within Grid with Row.Height=” *”.

Could you please share us the reason for using Scroll Viewer? So that we can provide our suggestions.

Venkatesan M. 

David García
Replied On July 28, 2016 03:24 PM UTC

Thanks for the reply back.

Exactly as I imagine because the special treatment of the ScrollViewer I though fit to screen size would be not possible.

The reason to use ScrollViewer as a content for other UserControls is that they could not fit because too many data enter or too many data show at once so for the smaller screens/resolutions the ScrollViewer help adding the scroll bars atomatically when needed.

Thanks so much for the help provided and your comments.

Arumuga Perumal S [Syncfusion]
Replied On July 29, 2016 06:47 AM UTC

Hi David,

Thank you for your update.

In order to meet your requirement of using SfRichTextBoxAdv control inside a ScrollViewer, set the desired height to the Height property of SfRichTextBoxAdv.

Arumuga Perumal S.


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