New to Telerik UI for WPF? Download free 30-day trial

FontSize of RadRichTextBox not Respected

Environment

Product Version 2019.2.618
Product RadRichTextBox for WPF

Description

The FontSize property of the RadRichTextBox is not applied to its text.

Solution

To display the proper FontSize passed to the RadRichTextBox control, you need to also set its DocumentInheritsDefaultStyleSettings property to True.

<Grid> 
    <telerik:RadRichTextBox x:Name="radRichTextBox"  
                            DocumentInheritsDefaultStyleSettings="True"  
                            FontSize="8" /> 
    <telerik:HtmlDataProvider  
                            RichTextBox="{Binding ElementName=radRichTextBox}"   
                            Html="{Binding Path=Html, Mode=TwoWay}" /> 
</Grid> 

See Also

In this article
Not finding the help you need? Improve this article