This question is locked. New answers and comments are not allowed.
I am seeing inconsistent behavior with the FontSize property on the RadRichTextBox. . . .
Here are my Repro Steps:
1) file new silverlight project
2) drag a RadRichTextBox out of the tool box, keep all defaults, except ask for an HTML DataProvider
3) add the font size property to the xaml, you should have something that looks like this:
Run the app and note that the font size is normal. . . .
Now comment out the HtmlDataProvider, you should have something that looks like this:
Run it again, note that the font inside the box is not respecting the default size we specified.
Now if we move the HtmlDataProvider outside of the RichTextBox, control we get the font size we want (note this is NOT how the Wizard generates the xaml):
Here are my Repro Steps:
1) file new silverlight project
2) drag a RadRichTextBox out of the tool box, keep all defaults, except ask for an HTML DataProvider
3) add the font size property to the xaml, you should have something that looks like this:
<telerik:RadRichTextBox DocumentInheritsDefaultStyleSettings="True" HorizontalScrollBarVisibility="Hidden" IsContextMenuEnabled="True" IsSelectionMiniToolBarEnabled="True" IsSpellCheckingEnabled="True" Name="radRichTextBox1" VerticalScrollBarVisibility="Hidden" FontSize="64"> <telerik:RadRichTextBox.Resources> <my:HtmlDataProvider x:Key="provider" RichTextBox="{Binding ElementName=radRichTextBox1}" /> </telerik:RadRichTextBox.Resources></telerik:RadRichTextBox>Run the app and note that the font size is normal. . . .
Now comment out the HtmlDataProvider, you should have something that looks like this:
<telerik:RadRichTextBox DocumentInheritsDefaultStyleSettings="True" HorizontalScrollBarVisibility="Hidden" IsContextMenuEnabled="True" IsSelectionMiniToolBarEnabled="True" IsSpellCheckingEnabled="True" Name="radRichTextBox1" VerticalScrollBarVisibility="Hidden" FontSize="64"> <telerik:RadRichTextBox.Resources> <!--<my:HtmlDataProvider x:Key="provider" RichTextBox="{Binding ElementName=radRichTextBox1}" />--> </telerik:RadRichTextBox.Resources></telerik:RadRichTextBox>Run it again, note that the font inside the box is not respecting the default size we specified.
Now if we move the HtmlDataProvider outside of the RichTextBox, control we get the font size we want (note this is NOT how the Wizard generates the xaml):
<telerik:RadRichTextBox DocumentInheritsDefaultStyleSettings="True" HorizontalScrollBarVisibility="Hidden" IsContextMenuEnabled="True" IsSelectionMiniToolBarEnabled="True" IsSpellCheckingEnabled="True" Name="radRichTextBox1" VerticalScrollBarVisibility="Hidden" FontSize="64"></telerik:RadRichTextBox><my:HtmlDataProvider RichTextBox="{Binding ElementName=radRichTextBox1}" />