I am using the RadRichTextBox to input and display various types of data. So far text input works fine. However when I copy and paste an image it seems to appear in the RadRichTextBox but the actual image is invisible. I would like to have text, tables, images and files if possible inside my RadRichTextBox. Here's some code that I've tried thus far. As I understand it XamlDataProvider takes a string in xaml format as its data source. Which is fine but then I don't understand how binary files like images are handled. A code sample in the mvvm pattern would be great. Thank you.
<
StackPanel
>
<
telerikXaml:XamlDataProvider
RichTextBox
=
"{Binding ElementName=radRich}"
Xaml
=
"{Binding Path=XamlText, Mode=TwoWay}"
></
telerikXaml:XamlDataProvider
>
<
telerik:RadRichTextBox
x:Name
=
"radRich"
/>
</
StackPanel
>
private
string
xamlText;
public
string
XamlText
{
get
{
return
xamlText; }
set
{
if
(xamlText != value)
{
xamlText = value;
RaisePropertyChanged(
"XamlText"
);
}
}
}