I updated my Silverlight libraries and my code where I would insert at points into a rich text box would throw an error now. I haven't updated in a 3-6 months (internal builds). I fixed it by just doing a Insert with out the document and it works.
Old code:
this.myRichTextBox.Document.Insert(myText, null);
New code:
this.myRichTextBox.Insert(myText);
It seems to work ok like this and inserts in the right place. Anything wrong with what I'm doing?
I don't really care about styles. I really only use the rich text box because I like it's spell checker with the red line under the word. I just use it as a regular text input box.
Old code:
this.myRichTextBox.Document.Insert(myText, null);
New code:
this.myRichTextBox.Insert(myText);
It seems to work ok like this and inserts in the right place. Anything wrong with what I'm doing?
I don't really care about styles. I really only use the rich text box because I like it's spell checker with the red line under the word. I just use it as a regular text input box.