This project has moved. For the latest updates, please go here.

Use RtfFormatter and PlainTextFormatter to bind to two different properties

Sep 16, 2011 at 7:54 PM


I want to use the RichTextBox to bind to two properties in my ViewModel, which will be saved in the database.  One will bind the RichText to a property, and the other to a PlainText.  Basically, I want the two fields to be exactly the same, but one in RTF and the other in plain text, this way when I export the table to Excel I can just display the plain text to the user.

I downloaded the source and added PlainTextFormatter dependancy properties, methods, etc. to mirror the current Text property.  However, my problem is that when the RichTextBox loads, it displays the RTF for a split second, then only displays the plain text.  I only want to display the RichText in my view.  How should I go about implementing this?  Thanks!

Sep 19, 2011 at 1:37 PM

I'm sorry, but I can't support modifications made to the toolkit.  There are too many variables that could be causing your issue that deal with your implementation.