I have this situation too. We basically need a dumbed down version of the RadRichTextBox. We don't want tables, images, colored text, different fonts, bullet points. All we want is text formatting (specifically bold, italics, underline), spell check, find/replace, cut, copy, and paste. We are also sharing this control between wpf and silverlight. We need a max length because the text here is only meant to be short, and we want to enforce that. We previously did it by tying into the OnDocumentContentChanged event of the document with this method.
sender, EventArgs e)
var noteText =
var document = (sender
(noteText.Length > MaxLength && document !=
document.DocumentContentChanged -= OnDocumentContentChanged;
i = 0; i < noteText.Length - MaxLength; ++i)
document.DocumentContentChanged += OnDocumentContentChanged;
I originally started looking through the forums today because I noticed there is a DocumentChanging event in the RadRichTextBox, and I was curious if there were a way I could handle the content coming in before the document is changed. Our current method leaves a flicker of text past what our max length. Is there a way to get a hold of the new input on the DocumentChanging event?
Aside from that, in your earlier post you mentioned a possible text box like control. What would this entail? Is it still a possibility?
Thanks for your help,