Hello,
i am trying to use the RadRichTextBox as an html editor. for starters, i simply tried to bind it to html comming from a different text box.
i keep getting binding error on this simple example.
can you please help? what am i doing wrong?
here is the xaml: (i get binding errors on both binding expressions)
Thanks!
Kfir
i am trying to use the RadRichTextBox as an html editor. for starters, i simply tried to bind it to html comming from a different text box.
i keep getting binding error on this simple example.
can you please help? what am i doing wrong?
here is the xaml: (i get binding errors on both binding expressions)
<UserControl x:Class="WpfApplication27.UserControl1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telHtml="clr-namespace:Telerik.Windows.Documents.FormatProviders.Html;assembly=Telerik.Windows.Documents.FormatProviders.Html"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<UserControl.Resources>
<telHtml:HtmlDataProvider x:Key="htmlDataProvider" Html="{Binding ElementName=source, Path=Text, Mode=TwoWay}"
RichTextBox="{Binding ElementName=editor}"
/>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<telerik:RadRichTextBox x:Name="editor"/>
<TextBox AcceptsReturn="True" Name="source" Grid.Column="1"/>
</Grid>
</UserControl>Thanks!
Kfir