Getting an odd error I can't run to ground when binding a RichTextBox to a database via MVVM. here's my simple code:
The RichTextBox binding of the XamlDataProvider throws the following error:
The local property "RichTextBox" can only be applied to types that are derived from "DataProviderBase".
What am I missing?
<
Grid
x:Name
=
"LayoutRoot"
Margin
=
" 10"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"300"
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
telerik:RadListBox
x:Name
=
"ToC"
ItemsSource
=
"{Binding HelpDocs}"
SelectedItem
=
"{Binding SelectedTopic, Mode=TwoWay}"
/>
<
telerik:XamlDataProvider
x:Name
=
"CurrentDocument"
RichTextBox
=
"{Binding SelectedTopic.Body}"
Xaml
=
"{Binding SelectedTopic.Body, Mode=TwoWay}"
/>
<
telerik:RadRichTextBox
x:Name
=
"HelpPane"
Grid.Column
=
"1"
LayoutMode
=
"Flow"
IsReadOnly
=
"False"
IsSpellCheckingEnabled
=
"False"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
Background
=
"{x:Null}"
BorderBrush
=
"{x:Null}"
BorderThickness
=
"0"
Grid.ColumnSpan
=
"2"
/>
</
Grid
>
The RichTextBox binding of the XamlDataProvider throws the following error:
The local property "RichTextBox" can only be applied to types that are derived from "DataProviderBase".
What am I missing?