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.
Unfortunately, activation email could not send to your email. Please try again.

FontSize property ignored

Thread ID:

Created:

Updated:

Platform:

Replies:

117162 Aug 26,2014 03:09 PM Aug 28,2014 02:06 AM WinRT 4
loading
Tags: SfRichTextBoxAdv
Stephanie Zielenski
Asked On August 26, 2014 03:09 PM

Hi there,

I have some rich text that I need to display in a consistent font size. I have tried loading it into the SfRichTectBoxAdv, but the FontSize property in my xaml (or set via code-behind) seems to be ignored. I haven't found any documentation on this yet, but would really appreciate some help. Here is the XAML I'm using: The content binder is fairly simple and just calls .Load on the control after creating a stream from the rich text string.

<sf:SfRichTextBoxAdv x:Name="richTextBoxAdv"

EnableRadialMenu="False"

BorderThickness="0"

FontSize="36"

local:RichEditBoxContentBinder.Text="{Binding RichText}"

ManipulationMode="None"/>



Arumuga Perumal S [Syncfusion]
Replied On August 27, 2014 01:20 AM

Hi Stephanie,

Thank you for your interest in Syncfusion products.

In our SfRichTextBoxAdv control, we can define default font size for contents. If the font size is defined for part of the text in the input rich text content, then the default font size set to SfRichTextBoxAdv control will be overridden by the font defined for the particular content. In order to reset the font size for entire rich text content loaded in SfRichTextBoxAdv, we have to either set the required font size for entire content or to clear the font size defined for entire content explicitly. We have attached a sample to demonstrate the same. Please find the sample from below link.

Please let us know if you have any other questions.

Regards,
Arumuga Perumal S.


Attachment: SfRTESample_23ed03da.zip

Stephanie Zielenski
Replied On August 27, 2014 11:34 AM

Thank you very much for the quick and thorough reply. I have downloaded your sample and integrated the code into *my* sample and it is working great. The next step is for me to integrate it into our full application.

Thank you again for top-notch support, as always.


Stephanie Zielenski
Replied On August 27, 2014 04:21 PM

Arumuga Perumal S.,

I so appreciate your help.

To give you a little more context, the rich text we are displaying is not stored in files, it is retrieved from a database. When I integrated your sample into our actual application with our actual data, I got a null reference exception. I was able to take the data from my application and bring it into your sample, so you can see the exception. Would you please be able to take a look at it and let me know if the rich text itself is the cause?

Thank you in advance,

Steph Zielenski


Attachment: SfRTESample_1a307fa8.zip

Sathish K [Syncfusion]
Replied On August 28, 2014 02:06 AM

Hi Stephanie,

 

Thank you for your update.

 

We are able to reproduce the mentioned issue with loading the attached RTF document in SfRichTextBoxAdv. We will fix this issue and this fix will be included in our upcoming refresh release. We will let you know once our refresh release has been released. You may also check our website periodically for latest information related to our release.

 

Please let us know if you have any other questions.

 

Regards,

Sathish


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.

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.

;