Hi,
I have a LightSwitch 2012 project in which I added a Silverlight project to include the Telerik RadRichTextBox as a custom control to display text that is stored as RTF data in the database.
My control has the following xaml:
<
UserControl
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
x:Class
=
"Kbc.Msi.UserControls.InterfaceTechnicalDescriptionViewer"
xmlns:rtfProvider
=
"clr-namespace:Telerik.Windows.Documents.FormatProviders.Rtf;assembly=Telerik.Windows.Documents.FormatProviders.Rtf"
mc:Ignorable
=
"d"
d:DesignHeight
=
"600"
d:DesignWidth
=
"800"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
telerik:RadRichTextBox
x:Name
=
"radRichTextBox"
BorderBrush
=
"{x:Null}"
Margin
=
"0"
IsReadOnly
=
"False"
AcceptsTab
=
"False"
LayoutMode
=
"Flow"
Grid.Row
=
"0"
Grid.Column
=
"0"
VerticalScrollBarVisibility
=
"Auto"
>
<
telerik:RadRichTextBox.Resources
>
<
rtfProvider:RtfDataProvider
x:Key
=
"provider"
x:Name
=
"Provider"
RichTextBox
=
"{Binding ElementName=radRichTextBox}"
Rtf
=
"{Binding Path=Content, Mode=TwoWay}"
/>
</
telerik:RadRichTextBox.Resources
>
</
telerik:RadRichTextBox
>
</
Grid
>
</
UserControl
>
The control is added on a LightSwitch details screen and bound to a text property that contains text stored as rtf.
For some reason however the control is showing perfectly on the screen, but no data is shown in the control.
I know data is present, because for debugging purposes I've added a text control to show the data as plain text.
Is there something I'm missing here?