Hi
i'm tring to change the spacing between lines in wpf RadRichText control. i've already tried the
i'm tring to change the spacing between lines in wpf RadRichText control. i've already tried the
ChangeParagraphSpacingAfter methode but it works only for empty data but when i load exsisting data
it return again with spaces.
my code look like:
private
void
rtfMain_Loaded(
object
sender, RoutedEventArgs e)
{
this
.rtfControlMain.ChangeParagraphSpacingAfter(0);
this
.rtfControlMain.ChangeParagraphLineSpacing(1.15);
}
xaml:
<
telerik:RadRichTextBox
x:Name
=
"rtfControlMain"
ToolTip
=
"{Binding ElementName=rtfControl,Path=Text}"
IsReadOnly
=
"{Binding ElementName=rtfControl,Path=IsReadOnly}"
IsSelectionMiniToolBarEnabled
=
"{Binding ElementName=rtfControl,Path=IsReadOnly, Converter={StaticResource inverseBooleanConverter}}"
FontFamily
=
"Segoe UI"
FontSize
=
"11"
DocumentInheritsDefaultStyleSettings
=
"True"
Grid.Row
=
"2"
Loaded
=
"rtfMain_Loaded"
>
<
telerik:RadRichTextBox.Resources
>
<
Style
TargetType
=
"TextBlock"
/>
</
telerik:RadRichTextBox.Resources
>
<
telerik:RadRichTextBox.Document
>
<
telerik:RadDocument
LineSpacing
=
"1.15"
ParagraphDefaultSpacingAfter
=
"0"
/>
</
telerik:RadRichTextBox.Document
>
</
telerik:RadRichTextBox
>
Please suggest how can i control this spacing.
Thanks,