The data binding of the RadRichTextBox does not work. What am I wrong about?
Document Class:
01.public class Document : INotifyPropertyChanged02.{03. private Guid _id = Guid.NewGuid();04. private string _title = "New Document";05. private string _description06. ....07. public string Description08. {09. get { return _description; }10. set11. {12. _description = value;13. NotifyPropertyChanged("Description");14. }15. }16.}RadRichTextBox in XAML:
01.<telerik:WizardPage x:Name="DescriptionPage" HeaderTemplate="{StaticResource headerTemplate}" BorderThickness="0">02.....03. <telerik:RadRichTextBox x:Name="DocumentDescriptionTextBox" Grid.Row="2" Grid.Column="1" Margin="10" Height="200" 04. IsSpellCheckingEnabled="True"05. IsContextMenuEnabled="True"06. IsSelectionMiniToolBarEnabled="False"07. IsImageMiniToolBarEnabled="False" 08. AllowScaling="False"09. DocumentInheritsDefaultStyleSettings="True"10. PreviewEditorKeyDown="RichTextBox_PreviewEditorKeyDown"/>11. <telerik:TxtDataProvider RichTextBox="{Binding ElementName=DocumentDescriptionTextBox}"12. Text="{Binding Path=Description, Mode=TwoWay}"/>13.....14.</telerik:WizardPage>
Assignment of the DataContext:
1.....2.this.DescriptionPage.DataContext = _document;3.....
