We are using the RichTextBox control to create XAML documents, which are then stored in the database and displayed in a different application. On attempting to retrieve one particular saved document, we are getting the error 'MeasureOverride returned NaN' (see attachment).
Now, previous discussion on this error points to issues with dynamic sizing. The layout of the page the richtextbox is in has explict heights/widths and the control itself is constrained to the size it initializes at. The cell it is in has explict height/width as well.
However, the unique thing about this content is that it is about 200kb due to a particularly large image. The image is larger than the width/height the control is limited to. It loaded into the RichTextBox fine in order to export and save it, it just won't parse back in to it.
All other XAML docs saved/parsed by the RichTextBox load fine.
Obviously the simple answer is to redo the content with a smaller image, which is fine, but I wouldn't expect the control to crash the entire silverlight application due to this. Any ideas?