Hi,
I have a RadRichTextBox and I'm trying to set the default font, but I can't get it to change.
I tried setting DocumentInheritsDefaultStyleSettings and I tried setting it in RadRichTextBox.Document tag, but it doesnt work.
Please explain me how to set the font.
This is my xaml:
<telerikDoc:RadRichTextBox Grid.Row="5" Grid.Column="1" MinWidth="300" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
IsContextMenuEnabled="True" IsReadOnly="False" IsSelectionMiniToolBarEnabled="False" LayoutMode="FlowNoWrap" AcceptsReturn="True"
IsSpellCheckingEnabled="False" x:Name="radRichTextBox" DocumentInheritsDefaultStyleSettings="False" FontSize="10" >
<telerikDoc:RadRichTextBox.Document>
<telerik:RadDocument>
<telerik:Section>
<telerik:Paragraph FontSize="24"/>
</telerik:Section>
</telerik:RadDocument>
</telerikDoc:RadRichTextBox.Document>
<telerikDoc:RadRichTextBox.Resources>
<rtf:RtfDataProvider x:Key="provider" RichTextBox="{Binding ElementName=radRichTextBox}"
Rtf="{Binding Path=Content, Mode=TwoWay}" SetupDocument="RtfDataProvider_SetupDocument">
</rtf:RtfDataProvider>
</telerikDoc:RadRichTextBox.Resources>
</telerikDoc:RadRichTextBox>
I have a RadRichTextBox and I'm trying to set the default font, but I can't get it to change.
I tried setting DocumentInheritsDefaultStyleSettings and I tried setting it in RadRichTextBox.Document tag, but it doesnt work.
Please explain me how to set the font.
This is my xaml:
<telerikDoc:RadRichTextBox Grid.Row="5" Grid.Column="1" MinWidth="300" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
IsContextMenuEnabled="True" IsReadOnly="False" IsSelectionMiniToolBarEnabled="False" LayoutMode="FlowNoWrap" AcceptsReturn="True"
IsSpellCheckingEnabled="False" x:Name="radRichTextBox" DocumentInheritsDefaultStyleSettings="False" FontSize="10" >
<telerikDoc:RadRichTextBox.Document>
<telerik:RadDocument>
<telerik:Section>
<telerik:Paragraph FontSize="24"/>
</telerik:Section>
</telerik:RadDocument>
</telerikDoc:RadRichTextBox.Document>
<telerikDoc:RadRichTextBox.Resources>
<rtf:RtfDataProvider x:Key="provider" RichTextBox="{Binding ElementName=radRichTextBox}"
Rtf="{Binding Path=Content, Mode=TwoWay}" SetupDocument="RtfDataProvider_SetupDocument">
</rtf:RtfDataProvider>
</telerikDoc:RadRichTextBox.Resources>
</telerikDoc:RadRichTextBox>