RichTextBox and MVVM

1 posts, 0 answers
  1. Brian
    Brian avatar
    73 posts
    Member since:
    Sep 2010

    Posted 11 May 2011 Link to this post

    UPDATE
    This turned out to be an issue on my end with my view model.  The code below works fine.




    I have scoured the forum but can't seem to find a full example of how to use a RichTextBox with MVVM.  I am trying to import and export to/from the RichTextBox from my view model but it is not working.  Here is my code: 

     

     

     

     

    <telerikFormatProvider:TxtDataProvider RichTextBox="{Binding ElementName=myRichTextBox}" Text="{Binding MyString, Mode=TwoWay}" />
    <telerik:RadRichTextBox Name="myRichTextBox" />
    where 'MyString' is a string property in my view model.  However, nothing shows up in my RichTextBox.  Any ideas as to what I'm doing wrong?

    Tks.


     

Back to Top