This question is locked. New answers and comments are not allowed.
I use the Telerik radRichTextBox in a Telerik gridview. I need to make the font smaller in the richtextbox. I am using Telerik Silverlight 2010 Q2. My company does not want to upgrade to a newer version of the silverlight Telerik controls. How can I change the font size in my richtextbox? Here is the richtextbox code from my XAML, and from my code-behind:
<
telerik:GridViewDataColumn
Header
=
"Notes"
MinWidth
=
"120"
MaxWidth
=
"200"
IsReadOnly
=
"True"
DataMemberBinding
=
"{Binding task.notes}"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
telerik:RadRichTextBox
x:Name
=
"readOnlyRichTextBox"
Height
=
"50"
IsReadOnly
=
"True"
>
<
telerik:RadRichTextBox.Resources
>
<
telerikDocumentXaml:XamlDataProvider
x:Key
=
"XamlDataProvider"
SetupDocument
=
"XamlDataProvider_SetupDocument"
RichTextBox
=
"{Binding ElementName=readOnlyRichTextBox}"
Xaml
=
"{Binding task.notes, Mode=TwoWay}"
/>
</
telerik:RadRichTextBox.Resources
>
</
telerik:RadRichTextBox
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>
private
void
XamlDataProvider_SetupDocument(
object
sender, Telerik.Windows.Documents.FormatProviders.SetupDocumentEventArgs e)
{
e.Document.SectionDefaultPageMargin =
new
Telerik.Windows.Documents.Layout.Padding(0, 0, 0, 0);
}