This is a migrated thread and some comments may be shown as answers.

RichTextBox and MVVM

0 Answers 150 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brian
Top achievements
Rank 1
Brian asked on 11 May 2011, 03:59 PM
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.


 

Tags
RichTextBox
Asked by
Brian
Top achievements
Rank 1
Share this question
or