Hi,
I have a richtextbox that receives its content from a text data provider.
The problem is that the lines of text containing only CR+LF (\n), are ignored by the editor.
In order to make them visible I have to insert a space after de CR+LF.
Is there a solution for this problem?
TextDataProvider
RichTextBox
Thanks in advance.
Nuno
I have a richtextbox that receives its content from a text data provider.
The problem is that the lines of text containing only CR+LF (\n), are ignored by the editor.
In order to make them visible I have to insert a space after de CR+LF.
Is there a solution for this problem?
TextDataProvider
<
telerikText:TxtDataProvider
x:Key
=
"textDataProvider"
x:Name
=
"DocumentProvider"
Text
=
"{Binding SelectedEvent.Expression, mode=TwoWay}"
RichTextBox
=
"{Binding ElementName=FormulaTextBox}"
SetupDocument
=
"TxtDataProvider_SetupDocument"
/>
RichTextBox
<
telerik:RadRichTextBox
x:Name
=
"FormulaTextBox"
telerik:StyleManager.Theme
=
"Expression_Dark"
Margin
=
"0,20,0,0"
Background
=
"#FFE9E9E9"
IsSpellCheckingEnabled
=
"False"
DocumentInheritsDefaultStyleSettings
=
"True"
AcceptsReturn
=
"True"
AcceptsTab
=
"True"
AllowScaling
=
"True"
IsReadOnly
=
"{Binding AllowChanges, Converter=StaticResource NotConverter}}"
/>
Thanks in advance.
Nuno