I read some threads on it forum on this topic and I produced the following code in xaml:
<Grid>
<telerik:XamlDataProvider x:Name="XamlDataProvider" Xaml="{Binding xxx}"
RichTextBox="{Binding ElementName=RadRichTextBox}"/>
<telerik:RadRichTextBox x:Name="RadRichTextBox" IsSpellCheckingEnabled="False"/>
<!--<TextBlock Text="{Binding xxx}"></TextBlock>-->
</Grid>
The xxx is a property in my view model. The data from RadRichTextBox document I convert to xaml and save in database and when I open a window and in database is the xxx I want to display it in RadRichTextBox. Now it's don't work. When I uncomment the line with textblock then in it there is the xaml string so datacontex should be good.
<Grid>
<telerik:XamlDataProvider x:Name="XamlDataProvider" Xaml="{Binding xxx}"
RichTextBox="{Binding ElementName=RadRichTextBox}"/>
<telerik:RadRichTextBox x:Name="RadRichTextBox" IsSpellCheckingEnabled="False"/>
<!--<TextBlock Text="{Binding xxx}"></TextBlock>-->
</Grid>
The xxx is a property in my view model. The data from RadRichTextBox document I convert to xaml and save in database and when I open a window and in database is the xxx I want to display it in RadRichTextBox. Now it's don't work. When I uncomment the line with textblock then in it there is the xaml string so datacontex should be good.