Hi,
I am trying to use a binding in the following code. Using a List<string> in the TextBlock works but using a List<RadDocument> in RadRichTextBox does not. Why is it so and what should I do?
The general question is: How do I bind the content of a RadRichTextBox in a RadBook to an IEnumerable<RadDocument> itemsource.
Another question is: What is currently the smartest way to present a RadDocument in a RadBook i.e. assuming a RadDocument with page breaks where the different pages in the RadDocument should map to the corresponding pages in a RadBook?
Best regards,
//Ingemar
I am trying to use a binding in the following code. Using a List<string> in the TextBlock works but using a List<RadDocument> in RadRichTextBox does not. Why is it so and what should I do?
<
Grid
>
<
Grid.Resources
>
<
DataTemplate
x:Name
=
"LeftPageTemplate"
>
<
telerikDocuments:RadRichTextBox
Document
=
"{Binding}"
/>
<!--<TextBlock Text="{Binding}"/>-->
</
DataTemplate
>
<
DataTemplate
x:Name
=
"RightPageTemplate"
/>
</
Grid.Resources
>
<
telerikNavigation:RadBook
ItemsSource
=
"{Binding ListOfRadDocuments}"
LeftPageTemplate
=
"{StaticResource LeftPageTemplate}"
RightPageTemplate
=
"{StaticResource RightPageTemplate}"
/>
</
Grid
>
The general question is: How do I bind the content of a RadRichTextBox in a RadBook to an IEnumerable<RadDocument> itemsource.
Another question is: What is currently the smartest way to present a RadDocument in a RadBook i.e. assuming a RadDocument with page breaks where the different pages in the RadDocument should map to the corresponding pages in a RadBook?
Best regards,
//Ingemar