In the following piece of code I'm loading some RTF text into a telerik RadRichTextBox. Does anyone know how to set the text control to wrap the text to the box width? Take into account that the sample code is part of a DataTemplate in the resources section of a window, therefore variable _reportRTFBox is not available in window code behind
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
telerikProvider:RtfDataProvider
Grid.Row
=
"1"
Rtf
=
"{Binding ReportToDistributeRTF}"
RichTextBox
=
"{Binding ElementName=_reportRTFBox}"
/>
<
telerik:RadRichTextBox
Grid.Row
=
"0"
x:Name
=
"_reportRTFBox"
MaxHeight
=
"200"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
IsReadOnly
=
"True"
/>
Many thanks,
Juanjo