Hello,
Problem is my RadRichTextBox object(editor variable here) always align my content horizontally center. I'm using 2011 Q2 Release.
Depending on my design I need to get data from a rtf resource(db[binary] and file resources).
Sure, I can bind RtfDataProvider
instance's RTF property but even this didn't solve my problem.(Beside this I don't want to bind it to an element for some purposes. )
Here is my code,
XAML
<
telerikDocumentsRTF:RtfDataProvider
x:Name
=
"RtfDataProviderEditor"
RichTextBox
=
"{Binding ElementName=editor}"
/>
<
telerik:RadRichTextBox
Grid.Row
=
"1"
x:Name
=
"editor"
MinHeight
=
"150"
Margin
=
"24 24 0 0"
>
Code Behind
RtfDataProviderEditor.Rtf = (
new
UnicodeEncoding()).GetString(rtf, 0, rtf.Length);
On codebehind right side is what I read from resource and what I want to read. Its Ok!
But when this line passed
RtfDataProviderEditor.Rtf
property change from somewhere and another Rtf content become replaced my content's centered one.My content is a simple report has some left and centr aligned paragraphs. I cannot attach it depending on forum restrictions. But here it is http://www.datasel.com.tr/rapor.rtf
----
Today I realize that If first line is centered this bug appears. Right?
King Regards!